player.gamer.statemachine.sadna

## Class TDWeightUpdater

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

- All Implemented Interfaces:
    WeightUpdater

      public class TDWeightUpdater
      extends java.lang.Object
      implements WeightUpdater

  Update vector weights with TD(0) algorithm

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TDWeightUpdater(double[] startingWeights)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `double[]` | `getWeights()`
    `void` | `updateWeights(Board board, int reward)`

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

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

- - ### Constructor Detail

    - #### TDWeightUpdater

          public TDWeightUpdater(double[] startingWeights)

  - ### Method Detail

    - #### getWeights

          public double[] getWeights()

      Specified by:
        `getWeights` in interface `WeightUpdater`

    - #### updateWeights

          public void updateWeights(Board board,
                           int reward)

      Specified by:
        `updateWeights` in interface `WeightUpdater`