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

Proposes moves sequentially from a list of algebraic notation moves. More...

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

Public Member Functions

def __init__ (self, PieceColor color, List[str] move_list)
 
Move propose_move (self, GameBoard game_board, List[Move] cur_moves)
 
def illegal_move_notice_response (self, Tuple[str] 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

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

Detailed Description

Proposes moves sequentially from a list of algebraic notation moves.

Definition at line 63 of file players.py.

Constructor & Destructor Documentation

◆ __init__()

def xiangqipy.players.ScriptedPlayer.__init__ (   self,
PieceColor  color,
List[str]  move_list 
)

Reimplemented from xiangqipy.game_interfaces.Player.

Definition at line 68 of file players.py.

Member Function Documentation

◆ illegal_move_notice_response()

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

Reimplemented from xiangqipy.game_interfaces.Player.

Definition at line 84 of file players.py.

◆ propose_move()

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

Reimplemented from xiangqipy.game_interfaces.Player.

Definition at line 73 of file players.py.

Member Data Documentation

◆ _move_index

xiangqipy.players.ScriptedPlayer._move_index
protected

Definition at line 71 of file players.py.

◆ _move_list

xiangqipy.players.ScriptedPlayer._move_list
protected

Definition at line 70 of file players.py.


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