chessica-0.1.0.0: A Library for Chess Game Logic
Copyright(c) Michael Szvetits 2023
LicenseBSD-3-Clause (see the file LICENSE)
Maintainertypedbyte@qualified.name
Stabilitystable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageGHC2021

Chess.Rulebook.Standard.Movement.King

Description

Implementation of the movement rule for kings, according to the standard rulebook.

Synopsis

Documentation

movements :: PlacedPiece King' -> Game -> [Command] Source #

Determines all possible movements (including captures and castlings) for a given king.

castlings :: PlacedPiece King' -> Game -> [Command] Source #

Determines all possible castlings for a given king.