Class ValueDifferencerFactory
- java.lang.Object
-
- com.barrybecker4.game.twoplayer.gomoku.analysis.differencers.ValueDifferencerFactory
-
public class ValueDifferencerFactory 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 LineFactorylineFactory_protected Patternspatterns_
-
Constructor Summary
Constructors Constructor Description ValueDifferencerFactory(Patterns patterns, LineFactory factory)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueDifferencercreateValueDifferencer(TwoPlayerBoard board, Direction dir)
-
-
-
Field Detail
-
patterns_
protected Patterns patterns_
-
lineFactory_
protected LineFactory lineFactory_
-
-
Constructor Detail
-
ValueDifferencerFactory
public ValueDifferencerFactory(Patterns patterns, LineFactory factory)
Constructor
-
-
Method Detail
-
createValueDifferencer
public ValueDifferencer createValueDifferencer(TwoPlayerBoard board, Direction dir)
- Parameters:
dir- the direction used to decide which differencer to create.- Returns:
- differencer for the specified direction.
-
-