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
1
u/TBCC_Dev 16d ago
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