Logo Search packages:      
Sourcecode: vdr-plugin-spider version File versions

bool Tableau::allCardsMatches (  ) 

Matches all cards in all piles?

Definition at line 115 of file tableau.c.

References Deck::cardsInSuit.

Referenced by autoMove(), and remove().

{
  for (unsigned int p = 0; p < piles.size(); ++p)
    if (piles[p]->count() > piles[p]->open() ||
        piles[p]->count() > piles[p]->getMatching() *
                            deck.cardsInSuit / (deck.cardsInSuit - 1))
      return false;
  return true;
}


Generated by  Doxygen 1.6.0   Back to index