h-reversi-0.1.0.3: Reversi game in haskell/blank-canvas

Safe HaskellNone
LanguageHaskell2010

Game.Disc

Synopsis

Documentation

data Disc #

Constructors

White 
Black 

Instances

Eq Disc # 

Methods

(==) :: Disc -> Disc -> Bool #

(/=) :: Disc -> Disc -> Bool #

Ord Disc # 

Methods

compare :: Disc -> Disc -> Ordering #

(<) :: Disc -> Disc -> Bool #

(<=) :: Disc -> Disc -> Bool #

(>) :: Disc -> Disc -> Bool #

(>=) :: Disc -> Disc -> Bool #

max :: Disc -> Disc -> Disc #

min :: Disc -> Disc -> Disc #

Show Disc # 

Methods

showsPrec :: Int -> Disc -> ShowS #

show :: Disc -> String #

showList :: [Disc] -> ShowS #

swap :: Disc -> Disc #

Swaps the turn

drawDisc :: Double -> Disc -> Canvas () #

Draws the disc in the appropriate position

clr :: Disc -> String #

Returns the color of the disk