Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
game_summary_io.py File Reference

Go to the source code of this file.

Namespaces

namespace  xiangqipy
 Python package that wraps the C++ core.
 
namespace  xiangqipy.game_summary_io
 Contains functions for importing / exporting a GameSummary from / to .json file.
 

Functions

Any xiangqipy.game_summary_io.enc_hook (Any obj)
 
Any xiangqipy.game_summary_io.dec_hook (Type type, Any obj)
 
GameSummary xiangqipy.game_summary_io.import_game_summary (Path path)
 
def xiangqipy.game_summary_io.export_game_summary (GameSummary game_summary, Path path)
 

Variables

msgspec xiangqipy.game_summary_io.encoder = msgspec.json.Encoder(enc_hook=enc_hook)
 
msgspec xiangqipy.game_summary_io.decoder = msgspec.json.Decoder(GameSummary, dec_hook=dec_hook)
 
PieceColor xiangqipy.game_summary_io.my_piece_color = PieceColor.kRed
 
int xiangqipy.game_summary_io.my_int = int(my_piece_color)