Inverted if statement
This commit is contained in:
parent
0ca1eca5a3
commit
3b266b2169
1 changed files with 6 additions and 6 deletions
12
main.py
12
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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue