Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
move_evaluator_minimax_for_concepts.cpp
Go to the documentation of this file.
1
3
4namespace moveselection {
5namespace minimaxutils_forconcepts {
6bool ValidateMove(SearchSummary &search_summary, const MoveCollection &allowed_moves) {
7 bool is_selected_move_allowed =
8 allowed_moves.ContainsMove(search_summary.selected_move());
9 if (!is_selected_move_allowed) {
10 search_summary.set_returned_illegal_move(true);
11 }
12 return is_selected_move_allowed;
13}
14} // namespace minimaxutils_forconcepts
15} // namespace moveselection
Stores data collected during a single call to moveselection::MinimaxMoveEvaluator....
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