3#include <unordered_map>
14 : points_array{game_points_array} {}
21 return std::shared_ptr<PiecePositionPointsForConcepts>(
38 for (
auto zcolor_idx = 0; zcolor_idx <
points_array.size(); zcolor_idx++) {
50 if (e_map.contains(color.second)) {
57 return game_string_map;
Definitions of classes used for storing piece points in Base Points Offset form.
Piece Points spec in "Base Points Offset" form with string keys in member unordered_map objects for e...
GamePointsArray_t ToGamePointsArray()
PieceColor GetPieceColorOf(size_t zcolor_index)
const unordered_map< string, PieceType > kPieceTypeStringToEnum
const int kNumPieceTypeVals
const unordered_map< string, PieceColor > kPieceColorStringToEnum
Providing position-dependent values of pieces to objects in moveselection namespace.
array< TeamPointsArray_t, 2 > GamePointsArray_t
unordered_map< gameboard::PieceType, PiecePointsArray_t > TeamPointsEMap_t
unordered_map< gameboard::PieceColor, TeamPointsEMap_t > GamePointsEMap_t
array< PiecePointsArray_t, gameboard::kNumPieceTypeVals > TeamPointsArray_t
unordered_map< string, TeamPointsSMap_t > GamePointsSMap_t
unordered_map< ToKey, Value > replace_keys_reverse(unordered_map< FromKey, Value > orig_map, unordered_map< ToKey, FromKey > key_substitutions)
Holds a piecepoints::GamePointsArray_t of points values, and exposes a method for accessing element c...
GamePointsEMap_t PointsArrayToEMap()
static std::shared_ptr< PiecePositionPointsForConcepts > Create(std::string json_file=piecepoints::kICGABPOPath)
static TeamPointsEMap_t TeamPointsArrayToEMap(TeamPointsArray_t team_array)
GamePointsArray_t points_array
PiecePositionPointsForConcepts(GamePointsArray_t &game_points_array)
GamePointsSMap_t PointsArrayToSmap()
Defiition of miscellaneous free functions (and implementation of those that are templates).