diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-01-26 22:03:37 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-01-26 22:03:37 +0300 |
commit | b2faacc10da5aa76820ba49506995565d405f42b (patch) | |
tree | 49c57a88854b582b991b34ffd0a1c3d8267e0911 /src | |
parent | c3e45da6364af8b0aa0b2331a5d2991f6c9e224d (diff) | |
download | chessnost-b2faacc10da5aa76820ba49506995565d405f42b.tar.gz |
docs: remove code from docs to not fail doctest
Diffstat (limited to 'src')
-rw-r--r-- | src/attacks.rs | 3 | ||||
-rw-r--r-- | src/board/mod.rs | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/attacks.rs b/src/attacks.rs index 8217ce6..1074037 100644 --- a/src/attacks.rs +++ b/src/attacks.rs @@ -21,9 +21,6 @@ pub type Byte = u8; /// First index is *occupancy* of the first rank (all possible states) /// and the second index is the file of the piece on the first rank -/// ``` -/// rank_attacks = first_rank_attacks[occupancy][piece_file]; -/// ``` type FirstRankAttacks = [[Byte; 8]; 256]; #[allow(dead_code)] diff --git a/src/board/mod.rs b/src/board/mod.rs index a5803ac..06b61bb 100644 --- a/src/board/mod.rs +++ b/src/board/mod.rs @@ -21,9 +21,6 @@ pub struct Board { pub ep_target: Option<Square>, /// Castling rights indexed by Color and CastlingSide - /// ``` - /// let can_castle = castling_rights[Color::White as usize][CastlingSide::Queen as usize]; - /// ``` pub castling_rights: [[bool; 2]; 2], /// Zobrist hash of the current position |