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)
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