Copyright | (c) Michael Szvetits 2023 |
---|---|
License | BSD-3-Clause (see the file LICENSE) |
Maintainer | typedbyte@qualified.name |
Stability | stable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Implementation of chess piece threats, according to the standard rulebook.
Synopsis
- threats :: PlacedPiece t -> Board -> [Position]
- threatCommands :: PlacedPiece t -> Board -> [Command]
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.