~ubuntu-branches/ubuntu/precise/kdegames/precise

« back to all changes in this revision

Viewing changes to kpat/spider.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2011-12-08 21:54:31 UTC
  • mto: This revision was merged to the branch mainline in revision 107.
  • Revision ID: package-import@ubuntu.com-20111208215431-1rg4pb1tdypujtl6
Tags: upstream-4.7.3
ImportĀ upstreamĀ versionĀ 4.7.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
343
343
 
344
344
bool Spider::pileHasFullRun( KCardPile * pile )
345
345
{
346
 
    return pile->count() >= 13 && isSameSuitDescending( pile->topCards( 13 ) );
 
346
    QList<KCard*> potentialRun = pile->topCards( 13 );
 
347
    return pile->count() >= 13
 
348
           && potentialRun.first()->isFaceUp()
 
349
           && isSameSuitDescending( potentialRun );
347
350
}
348
351
 
349
352