rlskyjo.game package

Submodules

rlskyjo.game.sample_game module

rlskyjo.game.sample_game.sample_run(games=5000, verbose=0, config={'num_players': 2})

rlskyjo.game.skyjo module

class rlskyjo.game.skyjo.SkyjoGame(num_players: int = 3, score_penalty=2, observe_other_player_indirect=False)

Bases: object

act(player_id: int, action_int: int)

perform actions

collect_observation(player_id: int) Tuple[numpy.array, numpy.array]
get_expected_action()
get_game_metrics()
classmethod render_action_explainer(action_int: int)

adds a string explaining actions to plot of render_player

classmethod render_actions()

possible actions

render_player(player_id, render_cards_open=False)

render cards of 1 player

render_table()
render game:

render cards for all players render game statistics

reset()
set_seed(value)

adds a random number generator. does not affect global np.random.seed()

Module contents