player.gamer.statemachine.sadna

## Class ScoreCalculator

- java.lang.Object
- - player.gamer.statemachine.sadna.ScoreCalculator

-     public class ScoreCalculator
      extends java.lang.Object

  Calculate board score

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ScoreCalculator(WeightUpdater updater)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `calculateScore(Board board)` Score is inner product of board attributes vector and weights vector, or infinity if player won, or negative infinity if opponent won

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ScoreCalculator

          public ScoreCalculator(WeightUpdater updater)

  - ### Method Detail

    - #### calculateScore

          public double calculateScore(Board board)

      Score is inner product of board attributes vector and weights vector, or infinity if player won, or negative infinity if opponent won
      Returns:
        The score