2020-11-10 17:08:06 +00:00
|
|
|
from dungeonbattle.game import Game
|
|
|
|
from dungeonbattle.display.display_manager import DisplayManager
|
|
|
|
from dungeonbattle.term_manager import TermManager
|
|
|
|
|
2020-11-10 19:34:22 +00:00
|
|
|
|
2020-11-10 17:08:06 +00:00
|
|
|
class Bootstrap:
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def run_game():
|
2020-11-10 20:32:42 +00:00
|
|
|
with TermManager() as term_manager: # pragma: no cover
|
2020-11-10 17:08:06 +00:00
|
|
|
game = Game()
|
|
|
|
game.new_game()
|
|
|
|
display = DisplayManager(term_manager.screen, game)
|
2020-11-12 00:57:56 +00:00
|
|
|
game.display_actions = display.handle_display_action
|
2020-11-10 19:34:22 +00:00
|
|
|
game.run(term_manager.screen)
|