Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
move_evaluators.cpp
Go to the documentation of this file.
1
5
6namespace moveselection {
7namespace minimaxutils {
8
9bool ValidateMove(SearchSummary &search_summary, const MoveCollection &allowed_moves) {
10 bool is_selected_move_allowed =
11 allowed_moves.ContainsMove(search_summary.selected_move());
12 if (!is_selected_move_allowed) {
13 search_summary.set_returned_illegal_move(true);
14 }
15 return is_selected_move_allowed;
16}
17
18} // namespace minimaxutils
19} // namespace moveselection
Stores data collected during a single call to moveselection::MinimaxMoveEvaluator....
Definitions of concrete classes that implement the MoveEvaluator interface.
bool ValidateMove(SearchSummary &search_summary, const MoveCollection &allowed_moves)
Selecting a move to execute.
A container for multiple gameboard::Move objects.
bool ContainsMove(const Move &move) const