Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
piece_value_provider.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
gameboard/board_data_structs.hpp
>
4
#include <concepts>
5
#include <
gameboard/game_piece.hpp
>
6
#include <
utilities/integer_types.hpp
>
7
#include <string>
8
9
template
<
typename
T>
10
concept
PieceValueProviderConcept
=
requires
(
11
T t,
12
gameboard::PieceColor
color,
13
gameboard::PieceType
piece_type,
14
gameboard::BoardSpace
&space,
15
std::string json_file
16
) {
17
{ t.GetValueOfPieceAtPosition(color, piece_type, space) } -> std::same_as<Points_t>;
18
{ t.Create(json_file) } -> std::same_as<std::shared_ptr<T>>;
19
};
board_data_structs.hpp
Constants, typedefs, and simple structs used by gameboard::GameBoard.
PieceValueProviderConcept
Definition:
piece_value_provider.hpp:10
game_piece.hpp
Defines GamePiece and supporting constants and free functions.
integer_types.hpp
gameboard::PieceType
PieceType
Definition:
game_piece.hpp:13
gameboard::PieceColor
PieceColor
Definition:
game_piece.hpp:38
gameboard::BoardSpace
A pair of coordinate (rank, and file) with properties determined by comparison with values of gameboa...
Definition:
board_data_structs.hpp:51
include
concepts
piece_value_provider.hpp
Generated on Sun Dec 29 2024 02:10:05 for Xiangiqgame by
1.9.6