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: AnyRef): Boolean

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

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

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

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

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

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

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

    Definition Classes
    Any
  9. val boardSize: Int

  10. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef
  13. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  16. def introMessage(): String

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  24. def numPositions(): Int

  25. val o: TicTacToePlayer

  26. val oClass: String

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

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

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

  30. def playerAfter(player: TicTacToePlayer): TicTacToePlayer

  31. def players(): Set[TicTacToePlayer]

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

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

    Definition Classes
    Game
  34. def startBoard(): (tttmm)#Matrix[Option[TicTacToePlayer]]

  35. def startFrom(s: TicTacToeState): Some[TicTacToeState]

    Definition Classes
    TicTacToe → Game
  36. def startState(): TicTacToeState

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

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

    Definition Classes
    AnyRef
  39. implicit val ttt: TicTacToe

  40. val tttmm: JblasMatrixModule

  41. final def wait(): Unit

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

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

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

  45. 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