Package search
Class SearchConfig
java.lang.Object
search.SearchConfig
Configuration class for defining search algorithm parameters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleandoublebooleanintintbooleandoublebooleanboolean -
Constructor Summary
ConstructorsConstructorDescriptionSearchConfig(boolean timeCriterion, double timeLimit, boolean aspirationWindow, double aspirationWindowSize, boolean transpositionTables, int maxAllowedDepth, boolean dynamicTime, boolean useQuiescenceSearch, int qSDepth) Constructor to initialize all configuration parameters. -
Method Summary
-
Field Details
-
timeCriterion
public boolean timeCriterion -
timeLimit
public double timeLimit -
aspirationWindow
public boolean aspirationWindow -
aspirationWindowSize
public double aspirationWindowSize -
transpositionTables
public boolean transpositionTables -
maxAllowedDepth
public int maxAllowedDepth -
dynamicTime
public boolean dynamicTime -
useQuiescenceSearch
public boolean useQuiescenceSearch -
qSDepth
public int qSDepth
-
-
Constructor Details
-
SearchConfig
public SearchConfig(boolean timeCriterion, double timeLimit, boolean aspirationWindow, double aspirationWindowSize, boolean transpositionTables, int maxAllowedDepth, boolean dynamicTime, boolean useQuiescenceSearch, int qSDepth) Constructor to initialize all configuration parameters.- Parameters:
timeCriterion- Whether time-based criteria are usedtimeLimit- Maximum time limit for the searchaspirationWindow- Whether aspiration window is usedaspirationWindowSize- Size of the aspiration windowtranspositionTables- Whether transposition tables are usedmaxAllowedDepth- Maximum allowed depth for search (in case timeCriterion is not used)dynamicTime- Whether dynamic time management is useduseQuiescenceSearch- Whether quiescence search is usedqSDepth- Depth at which to activate QS
-
-
Method Details
-
copy
Method to create a copy of this configuration.- Returns:
- A new SearchConfig instance with the same values as this one.
-