bishbosh-0.1.0.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Notation.ICCFNumeric

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
https://en.wikipedia.org/wiki/ICCF_numeric_notation.
Synopsis

Types

Data-types

data ICCFNumeric x y Source #

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

Instances

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

Defined in BishBosh.Notation.ICCFNumeric

Methods

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

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

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

Defined in BishBosh.Notation.ICCFNumeric

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

Defined in BishBosh.Notation.ICCFNumeric

Methods

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

show :: ICCFNumeric x y -> String #

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

Promotable (ICCFNumeric x y) Source # 
Instance details

Defined in BishBosh.Notation.ICCFNumeric

Constants

origin :: (Int, Int) Source #

The origin.

regexSyntax :: String Source #

Defines using a regex, the required syntax.

toRank :: [(Int, Rank)] Source #

Constant translation from integral promotion-specifications to the corresponding rank.

Functions

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

Shows the specified coordinates.

Constructors

mkICCFNumeric Source #

Arguments

:: Move x y 
-> Maybe Rank

The optional promotion-rank.

-> ICCFNumeric x y 

Smart constructor.

mkICCFNumeric' Source #

Arguments

:: Promotable promotable 
=> Move x y 
-> promotable

The datum from which to extract the optional promotion-rank.

-> ICCFNumeric x y 

Smart constructor.