axle.game.ttt

TicTacToe

case class TicTacToe (boardSize: Int) extends Game with Product with Serializable

TicTacToe is a 2-player perfect information zero-sum game

Self Type
TicTacToe
Linear Supertypes
Serializable, Serializable, Product, Equals, Game, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. TicTacToe
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Game
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TicTacToe (boardSize: Int)

Type Members

  1. class AITicTacToePlayer extends TicTacToePlayer

  2. trait Event extends AnyRef

  3. class InteractiveTicTacToePlayer extends TicTacToePlayer

  4. type MOVE = TicTacToeMove

    Definition Classes
    TicTacToeGame
  5. class Move extends Event

    Attributes
    abstract
  6. type OUTCOME = TicTacToeOutcome

    Definition Classes
    TicTacToeGame
  7. class Outcome extends Event

  8. type PLAYER = TicTacToePlayer

    Definition Classes
    TicTacToeGame
  9. class Player extends AnyRef

    Attributes
    abstract
  10. type STATE = TicTacToeState

    Definition Classes
    TicTacToeGame
  11. trait State extends AnyRef

  12. case class TicTacToeMove (tttPlayer: TicTacToePlayer, position: Int) extends Move with Product with Serializable

  13. case class TicTacToeOutcome (winner: Option[TicTacToePlayer]) extends Outcome with Product with Serializable

  14. class TicTacToePlayer extends Player

    Attributes
    abstract
  15. case class TicTacToeState (player: TicTacToePlayer, board: Matrix[Option[String]]) extends State with Product with Serializable

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. val boardSize : Int

  8. def canEqual (arg0: Any): Boolean

    Definition Classes
    TicTacToe → Equals
  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  11. def equals (arg0: Any): Boolean

    Definition Classes
    TicTacToe → Equals → AnyRef → Any
  12. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  14. def hashCode (): Int

    Definition Classes
    TicTacToe → AnyRef → Any
  15. def introMessage (): Unit

    Definition Classes
    TicTacToeGame
  16. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  17. def move (player: TicTacToePlayer, position: Int): TicTacToeMove

  18. def moveStateStream (state: STATE): Stream[(MOVE, STATE)]

    Definition Classes
    Game
  19. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  20. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  21. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  22. def numPositions (): Int

  23. def play (start: STATE): Unit

    Definition Classes
    Game
  24. val playas : Map[String, TicTacToePlayer]

  25. def player (id: String, description: String, interactive: Boolean): TicTacToePlayer

  26. def playerAfter (player: TicTacToePlayer): TicTacToePlayer

  27. def players (): Set[TicTacToePlayer]

    Definition Classes
    TicTacToeGame
  28. def productArity : Int

    Definition Classes
    TicTacToe → Product
  29. def productElement (arg0: Int): Any

    Definition Classes
    TicTacToe → Product
  30. def productIterator : Iterator[Any]

    Definition Classes
    Product
  31. def productPrefix : String

    Definition Classes
    TicTacToe → Product
  32. def scriptedMoveStateStream (state: STATE, moveIt: Iterator[MOVE]): Stream[(MOVE, STATE)]

    Definition Classes
    Game
  33. def startBoard (): ArrayMatrix[Option[String]]

  34. def state (player: TicTacToePlayer, board: Matrix[Option[String]]): TicTacToeState

  35. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  36. def toString (): String

    Definition Classes
    TicTacToe → AnyRef → Any
  37. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  39. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Game

Inherited from AnyRef

Inherited from Any