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