squirrel-battle/dungeonbattle/bootstrap.py
Yohann D'ANELLO d241bc8234 One more typo
2020-11-12 01:57:56 +01:00

16 lines
499 B
Python

from dungeonbattle.game import Game
from dungeonbattle.display.display_manager import DisplayManager
from dungeonbattle.term_manager import TermManager
class Bootstrap:
@staticmethod
def run_game():
with TermManager() as term_manager: # pragma: no cover
game = Game()
game.new_game()
display = DisplayManager(term_manager.screen, game)
game.display_actions = display.handle_display_action
game.run(term_manager.screen)