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

Safe HaskellNone
LanguageHaskell2010

Game.Disc

Synopsis

Documentation

data Disc Source #

Constructors

White 
Black 

Instances

Eq Disc Source # 

Methods

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

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

Ord Disc Source # 

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 Source # 

Methods

showsPrec :: Int -> Disc -> ShowS #

show :: Disc -> String #

showList :: [Disc] -> ShowS #

swap :: Disc -> Disc Source #

Swaps the turn

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

Draws the disc in the appropriate position

clr :: Disc -> String Source #

Returns the color of the disk