Class UpDiagonalDifferencer
- java.lang.Object
-
- com.barrybecker4.game.twoplayer.gomoku.analysis.differencers.ValueDifferencer
-
- com.barrybecker4.game.twoplayer.gomoku.analysis.differencers.UpDiagonalDifferencer
-
public class UpDiagonalDifferencer extends ValueDifferencer
Determines the difference in value between the most recent move and how it was before in the upward diagonal direction.
-
-
Field Summary
Fields Modifier and Type Field Description protected intnumColsprotected intnumRows-
Fields inherited from class com.barrybecker4.game.twoplayer.gomoku.analysis.differencers.ValueDifferencer
board_, lineFactory_, patterns_, winLength
-
-
Constructor Summary
Constructors Constructor Description UpDiagonalDifferencer(TwoPlayerBoard board, Patterns patterns, LineFactory lineFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfindValueDifference(int row, int col, com.barrybecker4.optimization.parameter.ParameterArray weights)protected voidinit()
-
-
-
Constructor Detail
-
UpDiagonalDifferencer
public UpDiagonalDifferencer(TwoPlayerBoard board, Patterns patterns, LineFactory lineFactory)
-
-
Method Detail
-
findValueDifference
public int findValueDifference(int row, int col, com.barrybecker4.optimization.parameter.ParameterArray weights)- Specified by:
findValueDifferencein classValueDifferencer- Returns:
- the difference in worth after making a move compared with before.
-
init
protected void init()
-
-