t3-game-0.1.0: tic-tac-toe core
T3.Game.Class
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