コード例 #1
0
	// default constructor
	AlphaBetaSearchParameters() 
        : _searchMethod         (SearchMethods::IDAlphaBeta)
        , _maxPlayer            (Players::Player_One)
        , _maxDepth             (Constants::Max_Search_Depth)
	    , _timeLimit            (0)
        , _maxChildren          (10)
        , _moveOrdering         (MoveOrderMethod::ScriptFirst)
        , _evalMethod           (SparCraft::EvaluationMethods::Playout)
	    , _playerToMoveMethod   (SparCraft::PlayerToMove::Alternate)
    {
	    setPlayerModel(Players::Player_One, PlayerModels::None);
	    setPlayerModel(Players::Player_Two, PlayerModels::None);
        setSimScripts(PlayerModels::NOKDPS, PlayerModels::NOKDPS);
    }
コード例 #2
0
	// default constrRaveor
	RaveSearchParameters() 
	    : _maxPlayer            (Players::Player_One)
		, _rootMoveSelection    (UCTMoveSelect::MostVisited)
	    , _timeLimit            (0)
        , _cValue               (1)
        , _maxTraversals        (100)
        , _maxChildren          (15)
        , _moveOrdering         (MoveOrderMethod::ScriptFirst)
        , _evalMethod           (SparCraft::EvaluationMethods::Playout)
	    , _playerToMoveMethod   (SparCraft::PlayerToMove::Alternate)
    {
	    setPlayerModel(Players::Player_One, PlayerModels::None);
	    setPlayerModel(Players::Player_Two, PlayerModels::None);
        setSimScripts(PlayerModels::NOKDPS, PlayerModels::NOKDPS);
    }