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

state : Board Symbol Error GameState

showGameState : GameState StringSource#

Textual representation of a GameState

player : GameState SymbolSource#

Projects the player

won : GameState BoolSource#

true if some player has won the game

draw : GameState BoolSource#

true if there is a draw