示例#1
0
 def _getMovePileScore(self, score, color, r, t, pile, rpile):
     # prefer reserves
     if not r in self.game.s.reserves:
         score = score - 10000
         # an empty pile doesn't gain anything
         if len(pile) == len(r.cards):
             return -1, color
     return CautiousDefaultHint._getMovePileScore(self, score, color, r, t, pile, rpile)
示例#2
0
 def _getMoveWasteScore(self, score, color, r, t, pile, rpile):
     score, color = CautiousDefaultHint._getMovePileScore(
         self, score, color, r, t, pile, rpile)
     # we prefer moving cards from the waste over everything else
     return score + 100000, color
示例#3
0
 def _getMoveWasteScore(self, score, color, r, t, pile, rpile):
     score, color = CautiousDefaultHint._getMovePileScore(
         self, score, color, r, t, pile, rpile)
     # we prefer moving cards from the waste over everything else
     return score + 100000, color