Found a "bug" in your book!
Submitted by yard2010 on Fri, 01/30/2009 - 15:42.
"} else if (firstCard == thisCard) { // clicked first card again"
p. 99.
if the player clicks on the card again, it suppose to turn the card.
but what if, there are 2 cards open and I click the first one?
this is a bug :)
you should check in this if statement if only one card is open atm:
"} else if (firstCard == thisCard && secondCard == null) { // clicked first card again"
:D
Copyright Gary Rosenzweig
