Bug in my game (course)


#1

Hello,
I’m following a course and I have a bug in my game. I need to create a condition to prevent a third card being (shown, open) when 2 cards are shown already(being compare). Unfortunately I haven’t been able to figure it out. https://github.com/luisbull/udacity-memory-game.git Any help, tips are welcome. Thanks in advance


#2

You could add a conditional to clickCard that checks whether you have two opened already and, if so, hides all of the cards.