Exemple #1
0
 def acceptsCards(self, from_stack, cards):
     if not RK_RowStack.acceptsCards(self, from_stack, cards):
         return False
     if not self.cards:
         return (from_stack is self.game.s.talon
                 or from_stack in self.game.s.reserves)
     return True
 def acceptsCards(self, from_stack, cards):
     if not RK_RowStack.acceptsCards(self, from_stack, cards):
         return False
     # Only allow a sequence if pile is empty
     if len(self.cards) > 0:
         return False
     return True
Exemple #3
0
 def acceptsCards(self, from_stack, cards):
     if not RK_RowStack.acceptsCards(self, from_stack, cards):
         return False
     if not self.cards:
         return (from_stack is self.game.s.talon or
                 from_stack in self.game.s.reserves)
     return True
Exemple #4
0
 def acceptsCards(self, from_stack, cards):
     if not RK_RowStack.acceptsCards(self, from_stack, cards):
         return False
     # Only allow a sequence if pile is empty
     if len(self.cards) > 0:
         return False
     return True
Exemple #5
0
 def acceptsCards(self, from_stack, cards):
     if not RK_RowStack.acceptsCards(self, from_stack, cards):
         return False
     if cards[0].suit == DIAMOND:
         return False
     if self.cards:
         return self.cards[-1].suit != DIAMOND
     return True
Exemple #6
0
 def acceptsCards(self, from_stack, cards):
     if not RK_RowStack.acceptsCards(self, from_stack, cards):
         return False
     if cards[0].suit == DIAMOND:
         return False
     if self.cards:
         return self.cards[-1].suit != DIAMOND
     return True
Exemple #7
0
 def acceptsCards(self, from_stack, cards):
     if not self.cards and from_stack in self.game.s.reserves:
         return True
     return RK_RowStack.acceptsCards(self, from_stack, cards)
 def acceptsCards(self, from_stack, cards):
     if not RK_RowStack.acceptsCards(self, from_stack, cards):
         return False
     if not self.cards:
         return from_stack is self.game.s.waste
     return True
Exemple #9
0
 def acceptsCards(self, from_stack, cards):
     if not self.cards and from_stack in self.game.s.reserves:
         return True
     return RK_RowStack.acceptsCards(self, from_stack, cards)
 def acceptsCards(self, from_stack, cards):
     if self.game.s.talon.cards:
         return False
     if len(self.cards) == 1:
         return True
     return RK_RowStack.acceptsCards(self, from_stack, cards)
Exemple #11
0
 def acceptsCards(self, from_stack, cards):
     if not RK_RowStack.acceptsCards(self, from_stack, cards):
         return False
     return BritishConstitution_RowStackMethods.acceptsCards(
         self, from_stack, cards)
Exemple #12
0
 def acceptsCards(self, from_stack, cards):
     if not RK_RowStack.acceptsCards(self, from_stack, cards):
         return False
     if not self.cards:
         return from_stack is self.game.s.waste
     return True
Exemple #13
0
 def acceptsCards(self, from_stack, cards):
     if not RK_RowStack.acceptsCards(self, from_stack, cards):
         return False
     return BritishConstitution_RowStackMethods.acceptsCards(
         self, from_stack, cards)
Exemple #14
0
 def acceptsCards(self, from_stack, cards):
     if self.cards and not self.game.inSuitSequence(self.cards[-1],
                                                    cards[0]):
         return False
     return RK_RowStack.acceptsCards(self, from_stack, cards)