TicTacToe - 0.1.0

Logic.Symbol

Description

This module defines the Symbol type and some helper functions.

Definitions

type SymbolSource#

A symbol represents a token that can be placed in a square

Constructors

| O : Symbol

The circle token

| X : Symbol

The cross token

==Symbol : SymbolSymbolBoolSource#

Equality for Symbols

switch : SymbolSymbolSource#

Turns O into X and X into O

showSymbol : SymbolStringSource#

Textual representation of a Symbol