def ScoreGoldenAgeofTerraforming(card): if 'Terraforming' in card: return 2 + (DeckInfo.ProductionPower(card) == PRODUCTION) if DeckInfo.CardIsDev(card) and (DeckInfo.Cost(card) == 6): return 1 if DeckInfo.ProductionPower(card) == PRODUCTION: return 1 return 0
def ScoreFreeTradeAssociation(card): if card in ['Consumer Markets', 'Expanding Colony']: return 2 if DeckInfo.GoodType(card) == NOVELTY: return 1 + (DeckInfo.ProductionPower(card) == PRODUCTION) return 0
def ScoreAlienTechInstitute(card): if 'Alien' in card: return 2 + (DeckInfo.ProductionPower(card) == PRODUCTION) return 0
def ScoreAlienCornucopia(card): if 'Alien' in card: return 2 if DeckInfo.ProductionPower(card) == PRODUCTION: return 1 return 0
def ScoreTerraformingGuild(card): if 'Terraforming' in card: return 2 return 2 * (DeckInfo.ProductionPower(card) == WINDFALL)
def ScoreMiningLeague(card): if card in ['Mining Conglomerate', 'Mining Robots']: return 2 return (DeckInfo.GoodType(card) == RARE) * ( (DeckInfo.ProductionPower(card) == PRODUCTION) + 1)
def ScoreMerchantGuild(card): return (DeckInfo.ProductionPower(card) == PRODUCTION) * 2