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

Has intentionally illegal move in list, followed by legal move (for tests). More...

Inheritance diagram for xiangqipy.players.ScriptedPlayerWithRetries:
Inheritance graph
Collaboration diagram for xiangqipy.players.ScriptedPlayerWithRetries:
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, 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

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

Detailed Description

Has intentionally illegal move in list, followed by legal move (for tests).

Definition at line 93 of file players.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from xiangqipy.game_interfaces.Player.

Definition at line 98 of file players.py.

Member Function Documentation

◆ illegal_move_notice_response()

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

Reimplemented from xiangqipy.game_interfaces.Player.

Definition at line 115 of file players.py.

◆ propose_move()

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

Reimplemented from xiangqipy.game_interfaces.Player.

Definition at line 104 of file players.py.

Member Data Documentation

◆ _input_req

xiangqipy.players.ScriptedPlayerWithRetries._input_req
protected

Definition at line 102 of file players.py.

◆ _move_index

xiangqipy.players.ScriptedPlayerWithRetries._move_index
protected

Definition at line 101 of file players.py.

◆ _move_list

xiangqipy.players.ScriptedPlayerWithRetries._move_list
protected

Definition at line 100 of file players.py.


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