s3games.ai

## Class MonteCarloRatioStrategy

- java.lang.Object
- - s3games.ai.Strategy
  - - s3games.ai.MonteCarloRatioStrategy

-     public class MonteCarloRatioStrategy
      extends Strategy

  Strategy class for the monte carlo ratio player. The winning/losing states are scaled by a weight coefficient that depends on branching in all opponent nodes that are on the way to that state (as contrasted to -1/1 in classical monte carlo).

- - ### Field Summary

    - ### Fields inherited from class s3games.ai.Strategy

      `heuristic`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MonteCarloRatioStrategy()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Player` | `getPlayer(GameSpecification specs)` returns a monte carlo ratio player for the specified game
    `void` | `learn(Game game)` constructs the a full game tree with almost winning strategy so that play() will then be able to play according to it.

    - ### Methods inherited from class s3games.ai.Strategy

      `availableStrategies, getStrategy, learnable, setHeuristic`

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

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

- - ### Constructor Detail

    - #### MonteCarloRatioStrategy

          public MonteCarloRatioStrategy()

  - ### Method Detail

    - #### getPlayer

          public Player getPlayer(GameSpecification specs)

      returns a monte carlo ratio player for the specified game
      Specified by:
        `getPlayer` in class `Strategy`

    - #### learn

          public void learn(Game game)

      constructs the a full game tree with almost winning strategy so that play() will then be able to play according to it. remains for future work
      Specified by:
        `learn` in class `Strategy`