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.
2
2
u/TopMathematician_ Jun 30 '26
is this ur first time coding or already u done with java c kinda
1
u/Accurate_Being6187 Jun 30 '26
I'm in second-year cs, but ngl I wasted my first year partying and stuff... I have a CGPA of 6. So I'm familiar with syntax and loops and all, but I've just started learning OOPs modules and all that. We did C and Python in the first year.
2
u/TopMathematician_ Jun 30 '26
from where are you learning python man? i am just a beginner who is about to join a clg ,lowkey confused what would be the right resource...
1
u/Accurate_Being6187 Jun 30 '26
my friend told me to learn flask and do it on a website? to make it prettier
1

•
u/Sea-Ad7805 Jun 30 '26
Run this program in Memory Graph Web Debugger to see the program state change step by step.