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.Threat

Description

Implementation of chess piece threats, according to the standard rulebook.

Synopsis

Documentation

threats :: PlacedPiece t -> Board -> [Position] Source #

Determines the positions threatened by a given chess piece.

threatCommands :: PlacedPiece t -> Board -> [Command] Source #

Determines all possible threat-based movements (including captures) for a given chess piece.