make
to buildmake run
to run the programmake clean
to 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)
MinimaxAgent
uses 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.SimpleEvaluator
DefensiveHeuristicEvaluator
OffensiveHeuristicEvaluator
DistanceFromBaseEvaluator
: poor evaluator
- set
interactive=true
inmain.cpp
to observe the moves