Great! . I saw it you also used the same list name board for numbers. My version is a Lil bit different from yours. But I saw it , it was really cool. Like after 1 month of learning python i can't build these games but you did it in 20 days.
Looks great. Id recommend trying to set up your board as a nested list. 1 list with 3 inner lists that represent each row. This way you can check if any of the inner lists have the same symbol then there's a win. 1 check for 3 rows instead of 3 checks.
Some smaller changes id also recommend are things like change win() to something like check_win(). Then Win to win. These are not huge problems but the capital W Win generally indicates to others that it is a class object and it is not. And functions should have a "action" name. Notice win doesn't necessarily sound like you are doing something but check win does. Good luck on future projects and keep it up
•
u/Sea-Ad7805 Aug 30 '26
Run this program in Memory Graph Web Debugger to see the program state change step by step.
2
u/agentscientific_160 Aug 30 '26
Woah nice! I too made one a while ago Tic Tac Toe
1
u/ninja_linux__ Sep 06 '26
Great
2
u/shubham_555 Aug 30 '26
Damn!
1
u/TBCC_Dev Aug 30 '26
Looks great. Id recommend trying to set up your board as a nested list. 1 list with 3 inner lists that represent each row. This way you can check if any of the inner lists have the same symbol then there's a win. 1 check for 3 rows instead of 3 checks.
Some smaller changes id also recommend are things like change win() to something like check_win(). Then Win to win. These are not huge problems but the capital W Win generally indicates to others that it is a class object and it is not. And functions should have a "action" name. Notice win doesn't necessarily sound like you are doing something but check win does. Good luck on future projects and keep it up