From f83e818a4d90a58ba5765079ee531cad92cf8d45 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 4 Oct 2020 04:57:36 +0000 Subject: [PATCH] Use identity check for comparision with True --- Scripts/Miscellaneous/Tic_Tac_Toe_Game/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()