catanatron.players package#


catanatron.players.weighted_random module#

class catanatron.players.weighted_random.WeightedRandomPlayer(color, is_bot=True)#

Bases: Player

Player that decides at random, but skews distribution to actions that are likely better (cities > settlements > dev cards).

decide(game, playable_actions)#

Should return one of the playable_actions or an OFFER_TRADE action if its your turn and you have already rolled.

  • game (Game) – complete game state. read-only.

  • playable_actions (Iterable[Action]) – options right now

Module contents#