player.gamer.statemachine.sadna

## Class GameTrainer

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

-     public class GameTrainer
      extends java.lang.Object

  Train two Connect Four players. Uges: GameTrainer

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `GameTrainer()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(java.lang.String[] args)`
    `static int` | `playGame(TrainingPlayer player1, TrainingPlayer player2)` Play one Connected Four game

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

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

- - ### Constructor Detail

    - #### GameTrainer

          public GameTrainer()

  - ### Method Detail

    - #### main

          public static void main(java.lang.String[] args)
                           throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### playGame

          public static int playGame(TrainingPlayer player1,
                     TrainingPlayer player2)

      Play one Connected Four game
      Returns:
        1 if first player won, 2 if second player won, 3 if tie.