How to know who is winner in Tic Tac Toe in python using guizero
问题 I have created a game called Tic Tac Toe. There are 2 players one of them are Xs one of them are Os all you have to do is get your symbol 3 in a row without the other person blocking you. The Gui for the game looks like this: Code: from guizero import App, TextBox, PushButton, Text, info empty = ' ' player = "X" def clicked(z): button = buttonlist[int(z)] # Finds out which button was pressed global empty, player if button.text != empty: pass # If button already pushed do nothing else: # Marks