API reference
Modules
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_objectMembers:
EASY
MEDIUM
HARD
- EASY = <Difficulty.EASY: 0>
- HARD = <Difficulty.HARD: 2>
- MEDIUM = <Difficulty.MEDIUM: 1>
- property name
- property value
- class city_of_gold.PlayerObservation
Bases:
pybind11_object- property discard
- property draw
- property hand
- property played
Bases:
pybind11_object
- 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.
reset(self: city_of_gold.cog_env) -> None
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