axle
.
game
ttt
package
ttt
Linear Supertypes
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
ttt
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Type Members
case class
TicTacToe
(
boardSize:
Int
=
3
,
x:
Player
,
xStrategy: (
TicTacToe
,
TicTacToeState
) ⇒
Distribution0
[
TicTacToeMove
,
Rational
]
,
xDisplayer: (
String
) ⇒
Unit
,
o:
Player
,
oStrategy: (
TicTacToe
,
TicTacToeState
) ⇒
Distribution0
[
TicTacToeMove
,
Rational
]
,
oDisplayer: (
String
) ⇒
Unit
)
extends
Product
with
Serializable
TicTacToe is a 2-player perfect information zero-sum game
case class
TicTacToeMove
(
position:
Int
,
boardSize:
Int
)
extends
Product
with
Serializable
case class
TicTacToeOutcome
(
winner:
Option
[
Player
]
)
extends
Product
with
Serializable
case class
TicTacToeState
(
playerOptFn: (
TicTacToeState
) ⇒
Option
[
Player
]
,
board:
Array
[
Option
[
Player
]]
,
boardSize:
Int
)
extends
Product
with
Serializable
Value Members
implicit
val
evGame
:
Game
[
TicTacToe
,
TicTacToeState
,
TicTacToeOutcome
,
TicTacToeMove
,
TicTacToeState
,
TicTacToeMove
]
implicit
val
evGameIO
:
GameIO
[
TicTacToe
,
TicTacToeOutcome
,
TicTacToeMove
,
TicTacToeState
,
TicTacToeMove
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped