MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1ujln85/my_first_lil_project/ouoqlud/?context=3
r/PythonLearning • u/Accurate_Being6187 • Jun 30 '26
I've been learning Python for about 12 days now:
Note: I will add a try-except ValueError thingy and constraints for i,j to be within 0-2.
11 comments sorted by
View all comments
3
3 thins to imrpove a little:
Validate moves, prevent a player from placing a mark in an already occupied cell.
What you already mentioned, ensure the entered row and column are within the board (0–2) and handle incorrect input formats.
0–2
End the game when all cells are filled and there is no winner, instead of looping forever.
2 u/Accurate_Being6187 Jun 30 '26 oh right i forgot that game tie too, my bad
2
oh right i forgot that game tie too, my bad
3
u/The_Mad_Saiyantist Jun 30 '26
3 thins to imrpove a little:
Validate moves, prevent a player from placing a mark in an already occupied cell.
What you already mentioned, ensure the entered row and column are within the board (
0–2) and handle incorrect input formats.End the game when all cells are filled and there is no winner, instead of looping forever.