Instance Constructors
-
new
TicTacToe
(boardSize: Int)
Type Members
-
-
trait
Event
extends AnyRef
-
-
-
class
Move
extends Event
-
-
class
Outcome
extends Event
-
-
class
Player
extends AnyRef
-
-
trait
State
extends AnyRef
-
case class
TicTacToeMove
(tttPlayer: TicTacToePlayer, position: Int) extends Move with Product with Serializable
-
case class
TicTacToeOutcome
(winner: Option[TicTacToePlayer]) extends Outcome with Product with Serializable
-
-
case class
TicTacToeState
(player: TicTacToePlayer, board: Matrix[Option[String]]) extends State with Product with Serializable
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
asInstanceOf
[T0]
: T0
-
val
boardSize
: Int
-
def
canEqual
(arg0: Any): Boolean
-
def
clone
(): AnyRef
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
introMessage
(): Unit
-
def
isInstanceOf
[T0]
: Boolean
-
-
def
moveStateStream
(state: STATE): Stream[(MOVE, STATE)]
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
numPositions
(): Int
-
def
play
(start: STATE): Unit
-
-
def
player
(id: String, description: String, interactive: Boolean): TicTacToePlayer
-
-
-
def
productArity
: Int
-
def
productElement
(arg0: Int): Any
-
def
productIterator
: Iterator[Any]
-
def
productPrefix
: String
-
def
scriptedMoveStateStream
(state: STATE, moveIt: Iterator[MOVE]): Stream[(MOVE, STATE)]
-
def
startBoard
(): ArrayMatrix[Option[String]]
-
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Deprecated Value Members
-
def
productElements
: Iterator[Any]
Inherited from Serializable
Inherited from Serializable
Inherited from Product
Inherited from Equals
Inherited from AnyRef
Inherited from Any
TicTacToe is a 2-player perfect information zero-sum game