Skip to content

Commit

Permalink
exit fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
CKjolhede committed Jun 20, 2024
1 parent 981a2d8 commit 7a1586f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from models.game_space import Game_space
from models.game import Game
from models.__init__ import CONN, CURSOR
from models.setup_helper import (exit_program, exit_program_early, player_home_position, )


player_house_positions = [4, 10, 16, 22]
Expand Down Expand Up @@ -43,6 +42,10 @@ def exit_program():
exit()

def exit_program_early(game):
players = get_player_list(game)
for player in players:
Game_space.delete(game, player)
Player.delete(player)
Game.delete(game)
os.system('clear')
print("Goodbye!")
Expand Down

0 comments on commit 7a1586f

Please sign in to comment.