diff --git a/Game.py b/Game.py index 11de06b..8fba58e 100644 --- a/Game.py +++ b/Game.py @@ -1,9 +1,8 @@ import asyncio import signal import logging -from solenoids.BottomLeftBankSolenoid import BottomLeftBankSolenoid -from solenoids.BottomRightBankSolenoid import BottomRightBankSolenoid -from solenoids.TopCentralBankSolenoid import TopCentralBankSolenoid +import sys + class Game: def __init__(self, input_handler, events, game_state): @@ -15,7 +14,7 @@ class Game: def interrupt(self, _, __): logging.info('Received SIGINT. Stopping Game :-)') - self.is_running.release() + sys.exit(0) async def run(self): logging.info('Starting game')