Class StraightDifferencer
- java.lang.Object
-
- com.barrybecker4.game.twoplayer.gomoku.analysis.differencers.ValueDifferencer
-
- com.barrybecker4.game.twoplayer.gomoku.analysis.differencers.StraightDifferencer
-
public class StraightDifferencer extends ValueDifferencer
Determines the difference in value between the most recent move and how it was before in the up/down or left right direction.
-
-
Field Summary
-
Fields inherited from class com.barrybecker4.game.twoplayer.gomoku.analysis.differencers.ValueDifferencer
board_, lineFactory_, patterns_, winLength
-
-
Constructor Summary
Constructors Constructor Description StraightDifferencer(TwoPlayerBoard board, Patterns patterns, LineFactory lineFactory, Direction dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfindValueDifference(int row, int col, com.barrybecker4.optimization.parameter.ParameterArray weights)
-
-
-
Constructor Detail
-
StraightDifferencer
public StraightDifferencer(TwoPlayerBoard board, Patterns patterns, LineFactory lineFactory, Direction dir)
-
-
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.
-
-