Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
moveselection::PreSearchMoveSorterForConcepts< G, P > Class Template Reference

Sorts moves based on points changed induce by single move; used by MinimaxMoveEvaluator for pre-sorting to increase likelihood of alpha/beta pruning during recursive search; uses SpaceInfoProviderConcept and PieceValueProviderConcept. More...

#include <move_evaluator_minimax_for_concepts.hpp>

Collaboration diagram for moveselection::PreSearchMoveSorterForConcepts< G, P >:
Collaboration graph

Public Member Functions

 PreSearchMoveSorterForConcepts (std::shared_ptr< G > game_board, std::shared_ptr< P > game_position_points)
 
ScoredMove RateMove (Move move, PieceColor cur_player)
 
std::vector< ScoredMoveGenerateRankedMoveList (PieceColor cur_player, const MoveCollection &cur_player_moves)
 

Private Attributes

std::shared_ptr< G > game_board_
 
std::shared_ptr< P > game_position_points_
 

Detailed Description

template<SpaceInfoProviderConcept G, PieceValueProviderConcept P>
class moveselection::PreSearchMoveSorterForConcepts< G, P >

Sorts moves based on points changed induce by single move; used by MinimaxMoveEvaluator for pre-sorting to increase likelihood of alpha/beta pruning during recursive search; uses SpaceInfoProviderConcept and PieceValueProviderConcept.

Definition at line 60 of file move_evaluator_minimax_for_concepts.hpp.

Constructor & Destructor Documentation

◆ PreSearchMoveSorterForConcepts()

moveselection::PreSearchMoveSorterForConcepts< G, P >::PreSearchMoveSorterForConcepts ( std::shared_ptr< G >  game_board,
std::shared_ptr< P >  game_position_points 
)
inline

Definition at line 68 of file move_evaluator_minimax_for_concepts.hpp.

Member Function Documentation

◆ GenerateRankedMoveList()

std::vector< ScoredMove > moveselection::PreSearchMoveSorterForConcepts< G, P >::GenerateRankedMoveList ( PieceColor  cur_player,
const MoveCollection cur_player_moves 
)
inline

Definition at line 105 of file move_evaluator_minimax_for_concepts.hpp.

◆ RateMove()

Member Data Documentation

◆ game_board_

std::shared_ptr<G> moveselection::PreSearchMoveSorterForConcepts< G, P >::game_board_
private

Definition at line 64 of file move_evaluator_minimax_for_concepts.hpp.

◆ game_position_points_

std::shared_ptr<P> moveselection::PreSearchMoveSorterForConcepts< G, P >::game_position_points_
private

Definition at line 65 of file move_evaluator_minimax_for_concepts.hpp.


The documentation for this class was generated from the following file: