Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
piece_value_provider.hpp
Go to the documentation of this file.
1#pragma once
2
4#include <concepts>
7#include <string>
8
9template <typename T>
10concept PieceValueProviderConcept = requires(
11 T t,
13 gameboard::PieceType piece_type,
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};
Constants, typedefs, and simple structs used by gameboard::GameBoard.
Defines GamePiece and supporting constants and free functions.
A pair of coordinate (rank, and file) with properties determined by comparison with values of gameboa...