bishbosh-0.0.0.4: Plays chess.

Safe HaskellNone
LanguageHaskell2010

BishBosh.Notation.Coordinate

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Synopsis

Types

Data-types

data Coordinate x y Source #

Defines a move, to enable io in Coordinate/-notation.

Instances
(Eq x, Eq y) => Eq (Coordinate x y) Source # 
Instance details

Defined in BishBosh.Notation.Coordinate

Methods

(==) :: Coordinate x y -> Coordinate x y -> Bool #

(/=) :: Coordinate x y -> Coordinate x y -> Bool #

(Enum x, Enum y, Ord x, Ord y) => Read (Coordinate x y) Source # 
Instance details

Defined in BishBosh.Notation.Coordinate

(Enum x, Enum y) => Show (Coordinate x y) Source # 
Instance details

Defined in BishBosh.Notation.Coordinate

Methods

showsPrec :: Int -> Coordinate x y -> ShowS #

show :: Coordinate x y -> String #

showList :: [Coordinate x y] -> ShowS #

Promotable (Coordinate x y) Source # 
Instance details

Defined in BishBosh.Notation.Coordinate

Constants

origin :: (Int, Int) Source #

The origin.

regexSyntax :: String Source #

Defines using a regex, the required syntax.

Functions

showsCoordinates :: (Enum x, Enum y) => Coordinates x y -> ShowS Source #

Shows the specified coordinates.

Constructors

mkCoordinate :: Move x y -> Maybe Rank -> Coordinate x y Source #

Smart constructor.

mkCoordinate' :: Promotable promotable => Move x y -> promotable -> Coordinate x y Source #

Smart constructor.