diff --git a/22_itictactoe/solution1.py b/22_itictactoe/solution1.py index f44985a4b..92dda3650 100755 --- a/22_itictactoe/solution1.py +++ b/22_itictactoe/solution1.py @@ -32,6 +32,7 @@ def main() -> None: print('You lose, loser!') break elif state.winner: + print(format_board(state.board)) print(f'{state.winner} has won!') break elif state.draw: diff --git a/22_itictactoe/solution2_typed_dict.py b/22_itictactoe/solution2_typed_dict.py index e375b20ae..a8d6e7c7c 100755 --- a/22_itictactoe/solution2_typed_dict.py +++ b/22_itictactoe/solution2_typed_dict.py @@ -37,6 +37,7 @@ def main() -> None: print('You lose, loser!') break elif state['winner']: + print(format_board(state['board'])) print(f"{state['winner']} has won!") break elif state['draw']: