TicTacToe - 0.1.0

Logic.GameState

Definitions

Constructors

| noError : Error

no error occurred

| continue : String Error

a non-fatal error occurred

| terminate : String Error

a fatal occurred

open Error using {noError; continue; terminate} public

Constructors

mkGameState@{ board : Board; player : Symbol; error : Error; }

open GameState using {mkGameState} public

showGameState (state : GameState) : StringSource#

Textual representation of a GameState

won (state : GameState) : BoolSource#

true if some player has won the game

draw (state : GameState) : BoolSource#

true if there is a draw