API reference

Modules

city_of_gold.vec

Vectorized utilities

city_of_gold

Python bindings for City of Gold C++ RL environment

class city_of_gold.ActionData

Bases: pybind11_object

property get_from_shop
property move
property play
property play_special
property remove
class city_of_gold.ActionMask

Bases: pybind11_object

property get_from_shop
property move
property play
property play_special
property remove
class city_of_gold.Difficulty

Bases: pybind11_object

Members:

EASY

MEDIUM

HARD

EASY = <Difficulty.EASY: 0>
HARD = <Difficulty.HARD: 2>
MEDIUM = <Difficulty.MEDIUM: 1>
property name
property value
class city_of_gold.Info

Bases: pybind11_object

property agent_infos
property total_length
class city_of_gold.ObsData

Bases: pybind11_object

property player_data
property shared
class city_of_gold.PlayerData

Bases: pybind11_object

property action_mask
property obs
class city_of_gold.PlayerObservation

Bases: pybind11_object

property discard
property draw
property hand
property played
class city_of_gold.SharedObservation

Bases: pybind11_object

property map
property phase
property resources
property shop
class city_of_gold.action_sampler

Bases: pybind11_object

sample(self: city_of_gold.action_sampler, arg0: city_of_gold.ActionMask) city_of_gold.ActionData
class city_of_gold.cog_env

Bases: pybind11_object

property agent_selection
get_done(self: city_of_gold.cog_env) bool
get_map(self: city_of_gold.cog_env) Map
get_n_players(self: city_of_gold.cog_env) int
get_seed(self: city_of_gold.cog_env) int
init(self: city_of_gold.cog_env, observations: ObsData, info: Info, rewards: Annotated[list[float], FixedSize(4)], selected_action_mask: ActionMask) None
render(self: city_of_gold.cog_env) None
reset(*args, **kwargs)

Overloaded function.

  1. reset(self: city_of_gold.cog_env) -> None

  2. reset(self: city_of_gold.cog_env, arg0: int, arg1: int, arg2: int, arg3: Difficulty, arg4: int, arg5: bool) -> None

step(self: city_of_gold.cog_env, arg0: ActionData) None