Converts command line input related to a player into PlayerInput object.
More...
Converts command line input related to a player into PlayerInput object.
Definition at line 147 of file command_input.py.
◆ __init__()
def xiangqipy.command_input.PlayerCommandInterpreter.__init__ |
( |
|
self, |
|
|
str |
player_input, |
|
|
str |
algo_input, |
|
|
int |
strength_input, |
|
|
int |
key_size_input, |
|
|
int |
zkeys_seed, |
|
|
int |
number_zobrist_states |
|
) |
| |
◆ _get_key_size()
int xiangqipy.command_input.PlayerCommandInterpreter._get_key_size |
( |
|
self | ) |
|
|
protected |
◆ _get_number_zobrist_states()
int xiangqipy.command_input.PlayerCommandInterpreter._get_number_zobrist_states |
( |
|
self | ) |
|
|
protected |
◆ _get_strength()
int xiangqipy.command_input.PlayerCommandInterpreter._get_strength |
( |
|
self | ) |
|
|
protected |
◆ interpret_command()
PlayerInput xiangqipy.command_input.PlayerCommandInterpreter.interpret_command |
( |
|
self | ) |
|
◆ _default_key_size
int xiangqipy.command_input.PlayerCommandInterpreter._default_key_size = 64 |
|
staticprotected |
◆ _default_number_zobrist_states
int xiangqipy.command_input.PlayerCommandInterpreter._default_number_zobrist_states = 1 |
|
staticprotected |
◆ _default_strength
int xiangqipy.command_input.PlayerCommandInterpreter._default_strength = 4 |
|
staticprotected |
◆ _minimax_key_size_dispatch
dict xiangqipy.command_input.PlayerCommandInterpreter._minimax_key_size_dispatch |
|
staticprotected |
Initial value:= {
32: xb.MinimaxMoveEvaluator32,
64: xb.MinimaxMoveEvaluator64,
128: xb.MinimaxMoveEvaluator128,
}
Definition at line 158 of file command_input.py.
◆ _player_input_dispatch
dict xiangqipy.command_input.PlayerCommandInterpreter._player_input_dispatch |
|
staticprotected |
Initial value:= {
"ai": PlayerType.AI,
"person": PlayerType.HUMAN,
None: PlayerType.AI,
}
Definition at line 152 of file command_input.py.
◆ algo_input
xiangqipy.command_input.PlayerCommandInterpreter.algo_input |
◆ key_size_input
xiangqipy.command_input.PlayerCommandInterpreter.key_size_input |
◆ number_zobrist_states
xiangqipy.command_input.PlayerCommandInterpreter.number_zobrist_states |
◆ player_input
xiangqipy.command_input.PlayerCommandInterpreter.player_input |
◆ strength_input
xiangqipy.command_input.PlayerCommandInterpreter.strength_input |
◆ zkeys_seed
xiangqipy.command_input.PlayerCommandInterpreter.zkeys_seed |
The documentation for this class was generated from the following file: