Example #1
0
 def computeHints(self):
     DefaultHint.computeHints(self)
     if self.hints:
         return
     reserves = self.game.s.reserves
     for i in range(3):
         for j in range(i+1, 3):
             r1 = reserves[i]
             r2 = reserves[j]
             if r1.cards and r2.acceptsCards(r1, r1.cards[-1:]):
                 self.addHint(50000+len(r1.cards)+len(r2.cards), 1, r1, r2)
Example #2
0
 def computeHints(self):
     DefaultHint.computeHints(self)
     if self.hints:
         return
     reserves = self.game.s.reserves
     for i in range(3):
         for j in range(i+1, 3):
             r1 = reserves[i]
             r2 = reserves[j]
             if r1.cards and r2.acceptsCards(r1, r1.cards[-1:]):
                 self.addHint(50000+len(r1.cards)+len(r2.cards), 1, r1, r2)
Example #3
0
 def step010(self, dropstacks, rows):
     rows = rows + (self.game.s.talon,)
     return DefaultHint.step010(self, dropstacks, rows)
Example #4
0
 def step010(self, dropstacks, rows):
     rows = rows + self.game.s.reserves
     return DefaultHint.step010(self, dropstacks, rows)
Example #5
0
 def step010(self, dropstacks, rows):
     rows = rows + (self.game.s.talon,)
     return DefaultHint.step010(self, dropstacks, rows)
Example #6
0
 def step010(self, dropstacks, rows):
     rows = rows + self.game.s.reserves
     return DefaultHint.step010(self, dropstacks, rows)
Example #7
0
 def _getMoveCardBonus(self, r, t, pile, rpile):
     if r in self.game.s.rows and t in self.game.s.rows:
         if rpile:
             return 0
     return DefaultHint._getMoveCardBonus(self, r, t, pile, rpile)