function checkCards(){
  if ((cardsCollection.length === 2) && (cardsCollection[0] != cardsCollection[1])) {
    dismisCards();
  } else if (cardsCollection[0] === cardsCollection[1]) {
    acceptCards();
  }
}
/*
* Invoked by activateCard().
* Check number of cards in cardsCollection array, and compare them.
* Fire function depending on the result.
*/
Invoked by activateCard().
Check number of cards in cardsCollection array, and compare them.
Fire function depending on the result.
Invoked by activateCard () . Check number of cards in cardsCollection array and compare them . Fire function depending on the result .
function checkCards(){
  if ((cardsCollection.length === 2) && (cardsCollection[0] != cardsCollection[1])) {
    dismisCards();
  } else if (cardsCollection[0] === cardsCollection[1]) {
    acceptCards();
  }
}
function checkCards ( ) { if ( ( cardsCollection . length === 2 ) && ( cardsCollection [ 0 ] != cardsCollection [ 1 ] ) ) { dismisCards ( ) ; } else if ( cardsCollection [ 0 ] === cardsCollection [ 1 ] ) { acceptCards ( ) ; } }
Invoked by activateCard().
Invoked by activateCard () .