Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
piece_value_provider_interface.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
7
8using namespace gameboard;
9
13template <typename ConcretePieceValueProvider>
15public:
17 PieceColor color,
18 PieceType piece_type,
19 BoardSpace space
20 ) {
21 return static_cast<ConcretePieceValueProvider *>(this)
22 ->ImplementGetValueOfPieceAtPosition(color, piece_type, space);
23 }
24};
Constants, typedefs, and simple structs used by gameboard::GameBoard.
CRTP interface with method to retrieve points value for a specific gameboard::GamePiece at a specific...
Points_t GetValueOfPieceAtPosition(PieceColor color, PieceType piece_type, BoardSpace space)
int Points_t
Tracking piece positions and determining legal moves.
A pair of coordinate (rank, and file) with properties determined by comparison with values of gameboa...