bishbosh-0.1.1.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Type.Length

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • Defines suitable concrete types with which to specialise length-related type-parameters.
  • CAVEAT: use of narrow numeric types, results in marginally slower performance without any reduction in space-requirements.
Synopsis

Types

Type-synonyms

type Distance = Base Source #

  • The preferred type by which to represent the signed distance of a move.
  • N.B.: since distance is used to represent only the horizontal or vertical component of a move, rather than a diagonal length, it can be represented by an integral value.

type X = Base Source #

The distance along the abscissa.

type Y = Base Source #

The distance along the ordinate.

type Row = Y Source #

Indexes screen-coordinates in the vertical direction.

type Column = X Source #

Indexes screen-coordinates in the horizontal direction.