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

Constructors

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

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