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 : Symbol Symbol BoolSource#

Equality for Symbols

switch : Symbol SymbolSource#

Turns O into X and X into O

showSymbol : Symbol StringSource#

Textual representation of a Symbol