bishbosh-0.1.4.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.State.Position

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • Defines the state of the game, without regard to how it arrived there; https://www.chessprogramming.org/Chess_Position.
  • Games with the same position may be considered to have converged, since they now have equal opportunity.
  • N.B.: pieces are fungible, i.e. they lack identity, so the location of identical pieces may be exchanged, without altering the position.
Synopsis

Types

Data-types

data Position Source #

The state of the game, without regard to how it arrived there.

Instances

Instances details
Eq Position Source # 
Instance details

Defined in BishBosh.State.Position

Ord Position Source # 
Instance details

Defined in BishBosh.State.Position

NFData Position Source # 
Instance details

Defined in BishBosh.State.Position

Methods

rnf :: Position -> () #

ReflectableOnX Position Source # 
Instance details

Defined in BishBosh.State.Position

Hashable Position Source # 
Instance details

Defined in BishBosh.State.Position

Methods

listRandoms :: Zobrist positionHash -> Position -> [positionHash] Source #

Functions

Constructors

mkPosition Source #

Arguments

:: LogicalColour

The logical colour of the next player to move.

-> MaybePieceByCoordinates 
-> CastleableRooksByLogicalColour 
-> Maybe Turn

The last turn made.

-> Position 

Constructor.