bishbosh-0.1.4.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Notation.MoveNotation

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Synopsis

Type-classes

class ShowNotation a where Source #

An interface for types which can be rendered in a chess-notation.

class ShowNotationFloat a where Source #

An alternative to ShowFloat, which permits access to a specific move-notation.

Types

Data-types

data MoveNotation Source #

  • Identifies the sum-type of context-free move-notations which can be used.
  • Neither Standard Algebraic nor Long Algebraic notations are included, because conversion to or from a QualifiedMove, requires game-context.

Constants

tag :: String Source #

Used to qualify XML.

Functions

readsQualifiedMove :: MoveNotation -> ReadS EitherQualifiedMove Source #

Reads a move & move-type from the specified MoveNotation.

showNotation :: ShowNotation a => MoveNotation -> a -> String Source #

Show an arbitrary datum using the specified notation.

showsMoveSyntax :: MoveNotation -> ShowS Source #

Show the syntax required by a specific MoveNotation.

getNotation :: MoveNotation -> Notation Source #

Returns the notation-parameters.

getOrigin :: MoveNotation -> CoordinatePairI Source #

Returns the origin of the specified coordinate-system.

showsNotationFloatToNDecimals :: ShowNotationFloat a => MoveNotation -> NDecimalDigits -> a -> ShowS Source #

Render the specified data in the specified notation, & to the specified number of decimal digits.

Predicates