Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
xiangqipy.game_summary_converter.CoreToPyGameSummaryConverter Class Reference
Collaboration diagram for xiangqipy.game_summary_converter.CoreToPyGameSummaryConverter:
Collaboration graph

Public Member Functions

def __init__ (self, xb.GameSummary core_game_summary)
 
str py_game_id (self)
 
pen.GameState py_game_state (self)
 
xb.PieceColor py_whose_turn (self)
 
list[xb.ExecutedMove] py_move_log (self)
 
pgs.PlayerSummaries py_player_summaries (self)
 
pgs.GameSummary convert (self)
 

Public Attributes

 core_game_summary
 

Static Protected Attributes

dict _game_state_converter
 

Detailed Description

Definition at line 71 of file game_summary_converter.py.

Constructor & Destructor Documentation

◆ __init__()

def xiangqipy.game_summary_converter.CoreToPyGameSummaryConverter.__init__ (   self,
xb.GameSummary  core_game_summary 
)

Definition at line 79 of file game_summary_converter.py.

Member Function Documentation

◆ convert()

pgs.GameSummary xiangqipy.game_summary_converter.CoreToPyGameSummaryConverter.convert (   self)

Definition at line 126 of file game_summary_converter.py.

◆ py_game_id()

str xiangqipy.game_summary_converter.CoreToPyGameSummaryConverter.py_game_id (   self)

Definition at line 83 of file game_summary_converter.py.

◆ py_game_state()

pen.GameState xiangqipy.game_summary_converter.CoreToPyGameSummaryConverter.py_game_state (   self)

Definition at line 87 of file game_summary_converter.py.

◆ py_move_log()

list[xb.ExecutedMove] xiangqipy.game_summary_converter.CoreToPyGameSummaryConverter.py_move_log (   self)

Definition at line 98 of file game_summary_converter.py.

◆ py_player_summaries()

pgs.PlayerSummaries xiangqipy.game_summary_converter.CoreToPyGameSummaryConverter.py_player_summaries (   self)

Definition at line 106 of file game_summary_converter.py.

◆ py_whose_turn()

xb.PieceColor xiangqipy.game_summary_converter.CoreToPyGameSummaryConverter.py_whose_turn (   self)

Definition at line 91 of file game_summary_converter.py.

Member Data Documentation

◆ _game_state_converter

dict xiangqipy.game_summary_converter.CoreToPyGameSummaryConverter._game_state_converter
staticprotected
Initial value:
= {
xb.GameState.kUnfinished: pen.GameState.UNFINISHED,
xb.GameState.kRedWon: pen.GameState.RED_WON,
xb.GameState.kBlkWon: pen.GameState.BLACK_WON,
xb.GameState.kDraw: pen.GameState.DRAW,
}

Definition at line 72 of file game_summary_converter.py.

◆ core_game_summary

xiangqipy.game_summary_converter.CoreToPyGameSummaryConverter.core_game_summary

Definition at line 80 of file game_summary_converter.py.


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