Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df133a4

Browse files
committed
print the board one last time
1 parent ae2443d commit df133a4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

22_itictactoe/solution1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def main() -> None:
3232
print('You lose, loser!')
3333
break
3434
elif state.winner:
35+
print(format_board(state.board))
3536
print(f'{state.winner} has won!')
3637
break
3738
elif state.draw:

22_itictactoe/solution2_typed_dict.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def main() -> None:
3737
print('You lose, loser!')
3838
break
3939
elif state['winner']:
40+
print(format_board(state['board']))
4041
print(f"{state['winner']} has won!")
4142
break
4243
elif state['draw']:

0 commit comments

Comments
 (0)