Class ValueDifferencerFactory


  • public class ValueDifferencerFactory
    extends java.lang.Object
    Determines the difference in value between the most recent move and how it was before in one specific direction
    • 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.