Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
xiangqipy.command_input Namespace Reference

Contains classes for collecting command line input, and converting to a form that will be convenient for instantiating all of the objects needed to play a Game. More...

Classes

class  OutputFileInfo
 
class  PlayerCommandInterpreter
 Converts command line input related to a player into PlayerInput object. More...
 
class  PlayerInput
 Container for info collected from command line for specific player. More...
 
class  RawPlayerInput
 
class  RunKwargsInterpreter
 Converts dictionary output by XiangqiGameCommandLine into a XiangqiGameCommand. More...
 
class  XiangqiGameCommand
 Data container with all the info needed to instantiate a Game. More...
 
class  XiangqiGameCommandLine
 Collects info from command line args out outputs as a dictionary. More...
 

Functions

xb.PlayerSpec build_player_spec (dict[str, Any] run_kwargs, xb.PieceColor color_enum, str color_prefix)
 
xb.GameRunner build_game_runner (dict[str, Any] run_kwargs)
 
OutputFileInfo get_output_file_info (dict[str, Any] run_kwargs)
 
dict[str, Any] main ()
 

Variables

dict[str, Any] result = main()
 

Detailed Description

Contains classes for collecting command line input, and converting to a form that will be convenient for instantiating all of the objects needed to play a Game.

Function Documentation

◆ build_game_runner()

xb.GameRunner xiangqipy.command_input.build_game_runner ( dict[str, Any]  run_kwargs)

Definition at line 101 of file command_input.py.

◆ build_player_spec()

xb.PlayerSpec xiangqipy.command_input.build_player_spec ( dict[str, Any]  run_kwargs,
xb.PieceColor  color_enum,
str   color_prefix 
)

Definition at line 90 of file command_input.py.

◆ get_output_file_info()

OutputFileInfo xiangqipy.command_input.get_output_file_info ( dict[str, Any]  run_kwargs)

Definition at line 126 of file command_input.py.

◆ main()

dict[str, Any] xiangqipy.command_input.main ( )

Definition at line 422 of file command_input.py.

Variable Documentation

◆ result

dict[str, Any] xiangqipy.command_input.result = main()

Definition at line 429 of file command_input.py.