示例#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
示例#2
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
示例#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
示例#4
0
文件: acesup.py 项目: shlomif/PySolFC
 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
示例#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
示例#6
0
文件: golf.py 项目: shlomif/PySolFC
 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
示例#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
示例#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)
示例#10
0
 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)
示例#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)
示例#12
0
文件: sultan.py 项目: shlomif/PySolFC
 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
示例#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)
示例#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)