h-reversi-0.1.0.3: Reversi game in haskell/blank-canvas
Game.Disc
Synopsis
data Disc #
Constructors
Instances
Methods
(==) :: Disc -> Disc -> Bool #
(/=) :: Disc -> Disc -> Bool #
compare :: Disc -> Disc -> Ordering #
(<) :: Disc -> Disc -> Bool #
(<=) :: Disc -> Disc -> Bool #
(>) :: Disc -> Disc -> Bool #
(>=) :: Disc -> Disc -> Bool #
max :: Disc -> Disc -> Disc #
min :: Disc -> Disc -> Disc #
showsPrec :: Int -> Disc -> ShowS #
show :: Disc -> String #
showList :: [Disc] -> ShowS #
swap :: Disc -> Disc #
Swaps the turn
isBlack :: Disc -> Bool #
isWhite :: Disc -> Bool #
drawDisc :: Double -> Disc -> Canvas () #
Draws the disc in the appropriate position
clr :: Disc -> String #
Returns the color of the disk
drawDiscs :: Double -> Map (Int, Int) Disc -> Canvas () #