Exemplo n.º 1
0
 def canFlipCard(self):
     if not OpenStack.canFlipCard(self):
         return False
     for r in self.game.s.reserves:
         if len(r.cards) > 2:
             return False
     return True
Exemplo n.º 2
0
 def canFlipCard(self):
     if not OpenStack.canFlipCard(self):
         return False
     for r in self.game.s.reserves:
         if len(r.cards) > 2:
             return False
     return True
Exemplo n.º 3
0
 def canFlipCard(self):
     if not OpenStack.canFlipCard(self):
         return False
     for s in self.game.s.rows:
         if not s.cards:
             break
     else:
         return False
     i = list(self.game.s.reserves).index(self)
     if i == 0:
         return True
     if self.game.s.reserves[i - 1].cards:
         return False
     return True
Exemplo n.º 4
0
 def canFlipCard(self):
     if not OpenStack.canFlipCard(self):
         return False
     for s in self.game.s.rows:
         if not s.cards:
             break
     else:
         return False
     i = list(self.game.s.reserves).index(self)
     if i == 0:
         return True
     if self.game.s.reserves[i-1].cards:
         return False
     return True
Exemplo n.º 5
0
 def canFlipCard(self):
     if not OpenStack.canFlipCard(self):
         return False
     i = list(self.game.s.reserves).index(self)
     return len(self.game.s.foundations[i].cards) == 13
Exemplo n.º 6
0
 def canFlipCard(self):
     if not OpenStack.canFlipCard(self):
         return False
     i = list(self.game.s.reserves).index(self)
     return len(self.game.s.foundations[i].cards) == 13