Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
xiangqipy.players.HumanPlayer Class Reference

Uses terminal UI to propose moves. More...

Inheritance diagram for xiangqipy.players.HumanPlayer:
Inheritance graph
Collaboration diagram for xiangqipy.players.HumanPlayer:
Collaboration graph

Public Member Functions

None __init__ (self, PieceColor color, PlayerType player_type)
 
Move propose_move (self, GameBoard game_board, List[Move] cur_moves)
 
def illegal_move_notice_response (self, Move illegal_move, GameBoard game_board, List[Move] cur_moves)
 
- Public Member Functions inherited from xiangqipy.game_interfaces.Player
None __init__ (self, bindings.PieceColor color, PlayerType player_type, EvaluatorType evaluator_type=EvaluatorType.NULL)
 
bindings.Move propose_move (self, bindings.GameBoard game_board, List[bindings.Move] cur_moves)
 
def illegal_move_notice_response (self, bindings.Move illegal_move, bindings.GameBoard game_board, List[bindings.Move] cur_moves)
 
PlayerType player_type (self)
 
EvaluatorType move_evaluator_type (self)
 
int|None max_search_depth (self)
 
int|None zkeys_seed (self)
 
int|None zobrist_key_size (self)
 
cdm.SearchSummaries|None search_summaries (self)
 
PlayerSummary summary (self)
 

Protected Attributes

 _input_req
 
- Protected Attributes inherited from xiangqipy.game_interfaces.Player
 _color
 
 _player_type
 
 _evaluator_type
 

Detailed Description

Uses terminal UI to propose moves.

Definition at line 29 of file players.py.

Constructor & Destructor Documentation

◆ __init__()

None xiangqipy.players.HumanPlayer.__init__ (   self,
PieceColor  color,
PlayerType  player_type 
)

Reimplemented from xiangqipy.game_interfaces.Player.

Definition at line 34 of file players.py.

Member Function Documentation

◆ illegal_move_notice_response()

def xiangqipy.players.HumanPlayer.illegal_move_notice_response (   self,
Move  illegal_move,
GameBoard  game_board,
List[Move]   cur_moves 
)

Reimplemented from xiangqipy.game_interfaces.Player.

Definition at line 56 of file players.py.

◆ propose_move()

Move xiangqipy.players.HumanPlayer.propose_move (   self,
GameBoard  game_board,
List[Move]   cur_moves 
)

Reimplemented from xiangqipy.game_interfaces.Player.

Definition at line 38 of file players.py.

Member Data Documentation

◆ _input_req

xiangqipy.players.HumanPlayer._input_req
protected

Definition at line 36 of file players.py.


The documentation for this class was generated from the following file: