catanatron.players package

Submodules

catanatron.players.weighted_random module

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

Bases: catanatron.models.player.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.

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

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

Module contents