Environment¶
MahjongEnv¶
Multi-agent Mahjong environment where 4 agents play against each other.
options:
members:
- reset
- step
- get_obs
- get_oracle_obs
- get_full_obs
- get_valid_actions
- get_payoffs
- is_over
- get_curr_player_id
- render
show-inheritance:
Attributes
Attribute |
Type |
Description |
|---|---|---|
|
|
Executor observation space (93, 34) |
|
|
Oracle observation space (18, 34) |
|
|
Full observation space (111, 34) |
|
|
Action space (54 actions) |
Constants
Constant |
Value |
Description |
|---|---|---|
|
93 |
Executor observation channels |
|
18 |
Oracle observation channels |
|
54 |
Number of discrete actions |
|
34 |
Number of tile types |
SingleAgentMahjongEnv
Single-agent environment compatible with OpenAI Gym interface.
options:
members:
- reset
- step
- get_obs
- get_oracle_obs
- get_full_obs
- get_valid_actions
- render
show-inheritance:
Parameters
Parameter |
Type |
Description |
|---|---|---|
|
|
Either “random” or path to pretrained model |
Attributes
Same as MahjongEnv.