Xiangiqgame
AI engine for Xiangqi
|
Providing position-dependent values of pieces to objects in moveselection namespace. More...
Classes | |
class | BPOPointsEKeys |
Piece Points spec in "Base Points Offset" form with PieceType enum keys in member unordered_map objects for easy conversion to / from piecepoints::GamePointsArray_t form. More... | |
class | BPOPointsSKeys |
Piece Points spec in "Base Points Offset" form with string keys in member unordered_map objects for easy reading / writing data from / to .json files. More... | |
struct | PiecePositionPoints |
Holds a piecepoints::GamePointsArray_t of points values, and exposes a method for accessing element correspondig to specific gameboard::PieceType located at a specific gameboard::BoardSpace. More... | |
struct | PiecePositionPointsForConcepts |
Holds a piecepoints::GamePointsArray_t of points values, and exposes a method for accessing element correspondig to specific gameboard::PieceType located at a specific gameboard::BoardSpace. More... | |
Typedefs | |
typedef array< array< int, gameboard::kNumFiles >, gameboard::kNumRanks > | PiecePointsArray_t |
2-D array of points values for single piece at each position on a gameboard::GameBoard.board_map_. | |
typedef array< PiecePointsArray_t, gameboard::kNumPieceTypeVals > | TeamPointsArray_t |
typedef unordered_map< gameboard::PieceType, PiecePointsArray_t > | TeamPointsEMap_t |
typedef unordered_map< string, PiecePointsArray_t > | TeamPointsSMap_t |
typedef array< TeamPointsArray_t, 2 > | GamePointsArray_t |
typedef unordered_map< gameboard::PieceColor, TeamPointsEMap_t > | GamePointsEMap_t |
typedef unordered_map< string, TeamPointsSMap_t > | GamePointsSMap_t |
typedef unordered_map< gameboard::PieceType, Points_t > | TeamBasePoints_t |
typedef unordered_map< string, Points_t > | BasePointsSMap_t |
Functions | |
size_t | size_of_points_type () |
bool | is_signed_points_type () |
bool | operator== (const PiecePointsArray_t &a, const PiecePointsArray_t &b) |
bool | operator== (const TeamPointsSMap_t &a, const TeamPointsSMap_t &b) |
bool | operator== (GamePointsSMap_t &a, GamePointsSMap_t &b) |
Variables | |
const string | kICGABPOPath = utility_functs::get_data_file_abs_path("ICGA_2004_bpo.json") |
const string | kICGARawPath = utility_functs::get_data_file_abs_path("ICGA_2004_raw.json") |
const string | kRawSchemaPath |
const string | kBPOSchemaPath = utility_functs::get_data_file_abs_path("bpo_schema.json") |
Providing position-dependent values of pieces to objects in moveselection namespace.
typedef unordered_map<string, Points_t> piecepoints::BasePointsSMap_t |
Definition at line 72 of file piece_points_data_structs.hpp.
typedef array<TeamPointsArray_t, 2> piecepoints::GamePointsArray_t |
Definition at line 56 of file piece_points_data_structs.hpp.
typedef unordered_map<gameboard::PieceColor, TeamPointsEMap_t> piecepoints::GamePointsEMap_t |
Definition at line 57 of file piece_points_data_structs.hpp.
typedef unordered_map<string, TeamPointsSMap_t> piecepoints::GamePointsSMap_t |
Definition at line 58 of file piece_points_data_structs.hpp.
typedef array<array<int, gameboard::kNumFiles>, gameboard::kNumRanks> piecepoints::PiecePointsArray_t |
2-D array of points values for single piece at each position on a gameboard::GameBoard.board_map_.
Definition at line 22 of file piece_points_data_structs.hpp.
typedef unordered_map<gameboard::PieceType, Points_t> piecepoints::TeamBasePoints_t |
Definition at line 71 of file piece_points_data_structs.hpp.
Definition at line 39 of file piece_points_data_structs.hpp.
typedef unordered_map<gameboard::PieceType, PiecePointsArray_t> piecepoints::TeamPointsEMap_t |
Definition at line 40 of file piece_points_data_structs.hpp.
typedef unordered_map<string, PiecePointsArray_t> piecepoints::TeamPointsSMap_t |
Definition at line 41 of file piece_points_data_structs.hpp.
|
inline |
Definition at line 18 of file piece_points_data_structs.hpp.
|
inline |
Definition at line 24 of file piece_points_data_structs.hpp.
|
inline |
Definition at line 43 of file piece_points_data_structs.hpp.
|
inline |
Definition at line 59 of file piece_points_data_structs.hpp.
|
inline |
Definition at line 17 of file piece_points_data_structs.hpp.
const string piecepoints::kBPOSchemaPath = utility_functs::get_data_file_abs_path("bpo_schema.json") |
Definition at line 82 of file base_position_offset.hpp.
const string piecepoints::kICGABPOPath = utility_functs::get_data_file_abs_path("ICGA_2004_bpo.json") |
Definition at line 78 of file base_position_offset.hpp.
const string piecepoints::kICGARawPath = utility_functs::get_data_file_abs_path("ICGA_2004_raw.json") |
Definition at line 79 of file base_position_offset.hpp.
const string piecepoints::kRawSchemaPath |
Definition at line 80 of file base_position_offset.hpp.