Class GoMokuWeights
- java.lang.Object
-
- com.barrybecker4.game.common.GameWeights
-
- com.barrybecker4.game.twoplayer.gomoku.pattern.GoMokuWeights
-
public class GoMokuWeights extends GameWeights
These weights determine how the computer values each pattern if only one computer is playing, then only one of the weights arrays is used. These weights determine how the computer values features of the board if only one computer is playing, then only one of the weights arrays is used. use these weights if no others are provided.
-
-
Field Summary
Fields Modifier and Type Field Description static intJEOPARDY_WEIGHTIf greater than this threshold, then opponent is in jeopardy.-
Fields inherited from class com.barrybecker4.game.common.GameWeights
ASSUMED_WINNING_VALUE, NONE
-
-
Constructor Summary
Constructors Constructor Description GoMokuWeights()GoMokuWeights(double[] weights)
-
Method Summary
-
Methods inherited from class com.barrybecker4.game.common.GameWeights
getDefaultWeights, getDescription, getMaxWeight, getName, getPlayer1Weights, getPlayer2Weights, setPlayer1Weights, setPlayer2Weights, toString
-
-
-
-
Field Detail
-
JEOPARDY_WEIGHT
public static final int JEOPARDY_WEIGHT
If greater than this threshold, then opponent is in jeopardy.- See Also:
- Constant Field Values
-
-