From 3b266b2169cb19f98261def57fa5cab0fc2be934 Mon Sep 17 00:00:00 2001 From: maxneedspats <84929191+maxneedspats@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:15 -0500 Subject: [PATCH] Inverted if statement --- main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 82e8b34..283459b 100644 --- a/main.py +++ b/main.py @@ -96,18 +96,18 @@ try: Audio.unpause_background_music() end_routine_done = True if len(clicked_cards) == 2: - if clicked_cards[0] != clicked_cards[1]: + if clicked_cards[0] == clicked_cards[1]: + score += 5 + update_score() + Audio.match_made() + matches += 1 + else: time.sleep(1) clicked_cards[0].to_back() clicked_cards[1].to_back() score -= 1 update_score() Audio.no_match() - else: - score += 5 - update_score() - Audio.match_made() - matches += 1 clicked_cards = [] screen.update()