maketo buildmake runto run the programmake cleanto clean the build results
- no alpha-beta pruning
- several utility/evaluation function
- controlled by
MinimaxAgent::maxerUtility()andMinimaxAgent::minerUtility()
- controlled by
- with alpha-beta pruning
MinimaxAgent(maxdepth, enablePrune, evaluatorClass)MinimaxAgentuses an Evaluator class to do evaluation, see the defination ofclass Evalutor- Some Evaluators are defined in fiel
Evaluator.h/cpp, these evaluators can be combined with different factors.SimpleEvaluatorDefensiveHeuristicEvaluatorOffensiveHeuristicEvaluatorDistanceFromBaseEvaluator: poor evaluator
- set
interactive=trueinmain.cppto observe the moves