Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
base_space_info_provider.hpp
Go to the documentation of this file.
1#pragma once
2
5
7public:
8 virtual ~SpaceInfoProviderBase() = default;
9 virtual const gameboard::BoardMap_t& map() const = 0;
10 virtual bool IsDraw() = 0;
13 virtual gameboard::ExecutedMove ExecuteMove(const Move &move) = 0;
14};
Constants, typedefs, and simple structs used by gameboard::GameBoard.
virtual ~SpaceInfoProviderBase()=default
virtual gameboard::MoveCollection CalcFinalMovesOf(gameboard::PieceColor)=0
virtual const gameboard::BoardMap_t & map() const =0
virtual bool IsInCheck(gameboard::PieceColor)=0
virtual gameboard::ExecutedMove ExecuteMove(const Move &move)=0
virtual bool IsDraw()=0
Definitions and implementations of gameboard::Move and other move-related structs.
array< array< GamePiece, kNumFiles >, kNumRanks > BoardMap_t
2-D array of gameboard::GamePiece objects.
A change in the state of a gameboard::GameBoard represented by a gameboard::Move, and each of the gam...
A container for multiple gameboard::Move objects.
A gameboard::BoardSpace pair (start and end).