Class ValueDifferencer
- java.lang.Object
-
- com.barrybecker4.game.twoplayer.gomoku.analysis.differencers.ValueDifferencer
-
- Direct Known Subclasses:
DownDiagonalDifferencer,StraightDifferencer,UpDiagonalDifferencer
public abstract class ValueDifferencer extends java.lang.ObjectDetermines the difference in value between the most recent move and how it was before in one specific direction
-
-
Field Summary
Fields Modifier and Type Field Description protected TwoPlayerBoardboard_protected LineFactorylineFactory_protected Patternspatterns_protected intwinLength
-
Constructor Summary
Constructors Constructor Description ValueDifferencer(TwoPlayerBoard board, Patterns patterns, LineFactory factory)Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract intfindValueDifference(int row, int col, com.barrybecker4.optimization.parameter.ParameterArray weights)
-
-
-
Field Detail
-
board_
protected TwoPlayerBoard board_
-
patterns_
protected Patterns patterns_
-
lineFactory_
protected LineFactory lineFactory_
-
winLength
protected int winLength
-
-
Constructor Detail
-
ValueDifferencer
public ValueDifferencer(TwoPlayerBoard board, Patterns patterns, LineFactory factory)
Constructor
-
-