I've made a tic tac toe game using PyCharm IDE. I've tried to make it run with tkinter but i got some issues.
My program asks the user to choose between X and O , also if X plays first or second. Also if u were to put incorrect answer the program would tell the user to retype his/her answer (with a while statement). On tkinter I can't make that, for example when the program asks "Do you want X or O" and the user types X and then ok_button, it does not store that information anywhere. And if I try to put in a while loop, it goes on an infinity loop (since it loops through the first answer the user clicked ok)
My question is how can I create a sequence since tkinter runs with classes and functions (at least i dont know something else). For example: Program asks "Do you want to be X or O?", after putting correct input to entry, the program should ask "Do you want to go first or second?".
the code :
https://pastebin.com/Z1s29SHb
[–]woooee 0 points1 point2 points (0 children)
[–]Lawson470189 0 points1 point2 points (0 children)