def CheckMatchCarny(g): ret = [] for player, deck in g.cards_accumalated_per_player().iteritems(): if 'Fairgrounds' not in deck: continue fg_pts = game.score_fairgrounds(deck) if fg_pts >= 30: ret.append( {'player': player, 'reason': '%d VP from Fairgrounds' % fg_pts} ) return ret
def CheckMatchCarny(g): """Obtained at least 30 VP from Fairgrounds""" # Original suggestion: Blue ribbon - ended game with a Fairgrounds worth # 8 VP ret = [] for pdeck in g.get_player_decks(): (player, deck) = (pdeck.player_name, pdeck.deck) if "Fairgrounds" not in deck: continue fg_pts = game.score_fairgrounds(deck) if fg_pts >= 30: ret.append(achievement(player, "%d VP from Fairgrounds" % fg_pts, fg_pts)) return ret
def CheckMatchCarny(g): """Obtained at least 30 VP from Fairgrounds""" # Original suggestion: Blue ribbon - ended game with a Fairgrounds worth # 8 VP ret = [] for pdeck in g.get_player_decks(): (player, deck) = (pdeck.player_name, pdeck.deck) if 'Fairgrounds' not in deck: continue fg_pts = game.score_fairgrounds(deck) if fg_pts >= 30: ret.append( achievement(player, '%d VP from Fairgrounds' % fg_pts, fg_pts)) return ret