FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

print the board one last time · glongh/tiny_python_projects@df133a4 · GitHub

Commit df133a4

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

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL