예제 #1
0
 def closeStack(self):
     if self.cards[0].rank >= 10 and not cardsFaceDown(self.cards):
         self.flipMove()
     if len(self.game.s.talon.cards) == 4:
         self.game.s.talon.flipMove()
         for r in self.game.s.reserves:
             self.game.s.talon.moveMove(1, r)
예제 #2
0
파일: pileon.py 프로젝트: jimsize/PySolFC
 def isGameWon(self):
     for r in self.s.rows:
         if r.cards and not cardsFaceDown(r.cards):
             return False
     return True
예제 #3
0
 def isGameWon(self):
     for r in self.s.rows:
         if r.cards and not cardsFaceDown(r.cards):
             return False
     return True