Class DownDiagonalDifferencer
- java.lang.Object
-
- com.barrybecker4.game.twoplayer.gomoku.analysis.differencers.ValueDifferencer
-
- com.barrybecker4.game.twoplayer.gomoku.analysis.differencers.DownDiagonalDifferencer
-
public class DownDiagonalDifferencer extends ValueDifferencer
Determines the difference in value between the most recent move and how it was before in the downward 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 DownDiagonalDifferencer(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
-
DownDiagonalDifferencer
public DownDiagonalDifferencer(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()
-
-