Skip to content

Commit

Permalink
print the board one last time
Browse files Browse the repository at this point in the history
  • Loading branch information
kyclark committed May 24, 2020
1 parent ae2443d commit df133a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions 22_itictactoe/solution1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions 22_itictactoe/solution2_typed_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit df133a4

Please sign in to comment.