Пример #1
0
def CheckMatchDukeOfEarl(g):
    ret = []
    for player, deck in g.cards_accumalated_per_player().iteritems():
        if 'Duke' not in deck:
            continue
        duke_pts = game.score_duke(deck)
        duchy_pts = deck['Duchy'] * 5
        d_pts = duke_pts + duchy_pts
        if d_pts >= 42:
            ret.append( {'player': player, 'reason': '%d VP from Dukes and Duchies' % d_pts} )
    return ret
Пример #2
0
def CheckMatchDukeOfEarl(g):
    """Obtained at least 42 points from Dukes and Duchies"""
    # originally suggested as Duchebag
    ret = []
    for pdeck in g.get_player_decks():
        (player, deck) = (pdeck.player_name, pdeck.deck)
        if "Duke" not in deck:
            continue
        duke_pts = game.score_duke(deck)
        duchy_pts = deck.get("Duchy", 0) * 3
        d_pts = duke_pts + duchy_pts
        if d_pts >= 42:
            ret.append(achievement(player, "%d VP from Dukes and Duchies" % d_pts, d_pts))
    return ret
Пример #3
0
def CheckMatchDukeOfEarl(g):
    """Obtained at least 42 points from Dukes and Duchies"""
    # originally suggested as Duchebag
    ret = []
    for pdeck in g.get_player_decks():
        (player, deck) = (pdeck.player_name, pdeck.deck)
        if 'Duke' not in deck:
            continue
        duke_pts = game.score_duke(deck)
        duchy_pts = deck.get('Duchy', 0) * 3
        d_pts = duke_pts + duchy_pts
        if d_pts >= 42:
            ret.append(
                achievement(player, '%d VP from Dukes and Duchies' % d_pts,
                            d_pts))
    return ret