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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy