t3-game-0.1.0: tic-tac-toe core

Safe HaskellNone
LanguageHaskell2010

T3.Game.Class

Documentation

class Monad m => Game m where Source

Methods

move :: XO -> m Loc Source

forfeit :: Win XO -> Lose XO -> m () Source

end :: Win XO -> Lose XO -> m () Source

tie :: m () Source

step :: Board -> XO -> Loc -> m () Source

Instances