axle.game.ttt

TicTacToe

case class TicTacToe(boardSize: Int = 3, xClass: String = "human", oClass: String = "ai") extends Game[TicTacToe] with Product with Serializable

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

Linear Supertypes
Serializable, Serializable, Product, Equals, Game[TicTacToe], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TicTacToe
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Game
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TicTacToe(boardSize: Int = 3, xClass: String = "human", oClass: String = "ai")

Type Members

  1. case class AlphaBetaFold extends Product with Serializable

    Definition Classes
    Game
  2. abstract type EVENT <: Event[TicTacToe]

    Definition Classes
    Game
  3. type MOVE = TicTacToeMove

    Definition Classes
    TicTacToe → Game
  4. type Matrix[T] = (tttmm)#Matrix[T]

  5. type OUTCOME = TicTacToeOutcome

    Definition Classes
    TicTacToe → Game
  6. type PLAYER = TicTacToePlayer

    Definition Classes
    TicTacToe → Game
  7. type STATE = TicTacToeState

    Definition Classes
    TicTacToe → Game

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. def _alphabeta(state: STATE, depth: Int, cutoff: Map[PLAYER, Double], heuristic: (STATE) ⇒ Map[PLAYER, Double]): (MOVE, Map[PLAYER, Double])

    Definition Classes
    Game
  5. def alphabeta(state: STATE, depth: Int, heuristic: (STATE) ⇒ Map[PLAYER, Double]): (MOVE, Map[PLAYER, Double])

    Definition Classes
    Game
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val boardSize: Int

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. implicit val convertPlayerId: FunctionPair[Double, Option[TicTacToePlayer]]

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def gameStream(start: STATE, intro: Boolean): Stream[STATE]

    Definition Classes
    Game
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def introMessage: String

    Definition Classes
    TicTacToe → Game
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def minimax(state: STATE, depth: Int, heuristic: (STATE) ⇒ Map[PLAYER, Real]): (MOVE, STATE, Map[PLAYER, Real])

    Definition Classes
    Game
  17. def move(player: TicTacToePlayer, position: Int): TicTacToeMove

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

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

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

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

    Definition Classes
    AnyRef
  22. def numPositions: Int

  23. val o: TicTacToePlayer

  24. val oClass: String

  25. def play(start: STATE, intro: Boolean): Option[STATE]

    Definition Classes
    Game
  26. def playContinuously(start: STATE): STATE

    Definition Classes
    Game
  27. def player(id: String, description: String, which: String): TicTacToePlayer

  28. def playerAfter(player: TicTacToePlayer): TicTacToePlayer

  29. def players: Set[TicTacToePlayer]

    Definition Classes
    TicTacToe → Game
  30. val playersSeq: Vector[TicTacToePlayer]

  31. def scriptedMoveStateStream(state: STATE, moveIt: Iterator[MOVE]): Stream[(MOVE, STATE)]

    Definition Classes
    Game
  32. def startBoard: Matrix[Option[TicTacToePlayer]]

  33. def startFrom(s: TicTacToeState): Option[TicTacToeState]

    Definition Classes
    TicTacToe → Game
  34. def startState: TicTacToeState

    Definition Classes
    TicTacToe → Game
  35. def state(player: TicTacToePlayer, board: Matrix[Option[TicTacToePlayer]], eventQueue: Map[TicTacToePlayer, List[Event[TicTacToe]]]): Option[TicTacToeState]

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. implicit val ttt: TicTacToe

  38. val tttmm: JblasMatrixModule

  39. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. val x: TicTacToePlayer

  43. val xClass: String

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Game[TicTacToe]

Inherited from AnyRef

Inherited from Any

Ungrouped