diff --git a/Scripts/Miscellaneous/Tic_Tac_Toe_Game/main.py b/Scripts/Miscellaneous/Tic_Tac_Toe_Game/main.py index 3f5373ae1..1d30de11d 100644 --- a/Scripts/Miscellaneous/Tic_Tac_Toe_Game/main.py +++ b/Scripts/Miscellaneous/Tic_Tac_Toe_Game/main.py @@ -13,13 +13,13 @@ # This function prevents the user from clicking the same button again. def button(buttons): global bclick, count - if buttons["text"] == "" and bclick == True: + if buttons["text"] == "" and bclick is True: buttons["text"] = "X" bclick = False winner() count += 1 - elif buttons["text"] == "" and bclick == False: + elif buttons["text"] == "" and bclick is False: buttons["text"] = "O" bclick = True winner()