Logic.GameState
Contents
type ErrorSource#
Constructors
no error occurred
a non-fatal error occurred
a fatal occurred
type GameStateSource#
showGameState (state : GameState) : StringSource#
Textual representation of a GameState
beginState : GameStateSource#
initial GameState
won (state : GameState) : BoolSource#
true if some player has won the game
draw (state : GameState) : BoolSource#
true if there is a draw