bishbosh-0.1.2.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Component.EitherQualifiedMove

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • The type returned when reading a move encoded in a string, using any of a variety of notations.
  • The internal representation of a move is merely a pair of coordinates, but in various chess-notations, additional information is provided.
  • The quantity of additional information is dependent of the specific notation: some identify castling, en-passant, promotion rank, taken rank; some merely define the rank to which a Pawn should be promoted.
Synopsis

Types

Data-types

Functions

Constructors

mkPartiallyQualifiedMove :: Move -> Maybe Rank -> EitherQualifiedMove Source #

Constructor for notations which don't encode sufficient information to reliably re-construct the move-type, but merely the rank to which a Pawn is to be promoted.

mkFullyQualifiedMove :: Move -> MoveType -> EitherQualifiedMove Source #

Constructor for notations which encode sufficient information to reliably re-construct the move-type.