diff --git a/ttt_view.py b/ttt_view.py index ccd7b83..ffdd71b 100644 --- a/ttt_view.py +++ b/ttt_view.py @@ -57,6 +57,12 @@ class TTTView: elif game.check_winner('X'): winner = game.players['X'] else: - raise Exception("Tried to conclude a game which wasn't over!") + winner = None print(self.goodbye) - print(f"Congratulations to {winner.name}.") + if winner: + print(f"Congratulations to {winner.name}.") + else: + print("Nobody won this game.") + + +