No description
Find a file
Eryn Wells 4ce7e89cdb [board, explorer, moves] Clean up the castling rights API
Reorganize castling rights API on Board into methods named according to
conventions applied to other API.

Board::has_castling_right
Board::has_castling_right_active
Board::has_castling_right_unwrapped

    These all check if a color has the right to castle on a particular side
    (wing) of the board. The first takes an Option<Color>, the latter two
    operate on bare Colors: the active color, or an explicit Color.

Board::grant_castling_right
Board::grant_castling_right_active
Board::grant_castling_right_unwrapped

    Grant castling rights to a color. Color arguments follow the pattern above.

Board::revoke_castling_right
Board::revoke_castling_right_active
Board::revoke_castling_right_unwrapped

    Revoke castling rights from a color. Color arguments follow the pattern
    above.

The latter two groups of methods take a new CastleRightsOption type that
specifies either a single Wing or All.

Rework the implementation of CastleRights to take a CastleRightsOption. Update
the unit tests and make sure everything builds.
2025-06-18 23:44:40 +00:00
bitboard [bitboard] Fix the warning about shared references to mutable static data 2025-06-08 17:34:42 -07:00
board [board, explorer, moves] Clean up the castling rights API 2025-06-18 23:44:40 +00:00
chessfriend [chessfriend] Empty crate 2025-06-16 19:29:57 -07:00
core [core] Do a little cleanup in core::coordinates 2025-06-16 08:58:22 -07:00
doc Move Notes and ChessPieces docs to a doc directory 2024-01-22 19:27:08 -08:00
explorer [board, explorer, moves] Clean up the castling rights API 2025-06-18 23:44:40 +00:00
moves [board, explorer, moves] Clean up the castling rights API 2025-06-18 23:44:40 +00:00
perft [perft] Print the fen string of the board position 2025-06-17 16:42:35 -07:00
position [perft] Add back the block on searching into seen positions 2025-06-18 08:22:12 -07:00
.gitignore Ignore the target/ directory 2023-12-19 11:13:41 -08:00
Cargo.lock Remove empty dependencies list from Cargo.lock 2025-06-17 16:42:17 -07:00
Cargo.toml [chessfriend] Empty crate 2025-06-16 19:29:57 -07:00
ChessFriend.code-workspace Visual Studio Code workspace 2024-02-11 10:22:33 -07:00
Makefile WIP 2025-05-08 17:37:59 -07:00
rustfmt.toml Add style_edition to rustfmt.toml 2025-06-17 16:24:46 -07:00