From 8d147ad1df82e6c2ff7c04def9b70727760af135 Mon Sep 17 00:00:00 2001 From: maxneedspats <84929191+maxneedspats@users.noreply.github.com> Date: Mon, 1 Aug 2022 21:41:21 -0500 Subject: [PATCH] Issue fixed, but not in the ideal way. I'm working on that. --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 283459b..47db297 100644 --- a/main.py +++ b/main.py @@ -67,14 +67,14 @@ try: def clicked_card(x, y): """ - :return: The card which was clicked + Appends the card which was clicked on to the list clicked_cards. """ - Audio.click() global clicked_cards + if len(clicked_cards) == 2: + return None + Audio.click() for card in cards: if card.is_mouse_over(x, y) and card.shape()[:10] != 'card_front': - if len(clicked_cards) == 2: - clicked_cards = [] card.to_front() clicked_cards.append(card)