diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-01-21 04:34:32 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-01-21 04:42:44 +0300 |
commit | 56f80a81852ef9fa6c1654c8548751fb898f2fb3 (patch) | |
tree | 2eb1fc091237f1eef2909a3802cf1728e41e9dd0 /src/board.rs | |
parent | d788e73ea5240f72d3ca64a5ce2bad5026643ebd (diff) | |
download | chessnost-56f80a81852ef9fa6c1654c8548751fb898f2fb3.tar.gz |
feat: precompute knight and king attacks
Diffstat (limited to 'src/board.rs')
-rw-r--r-- | src/board.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/board.rs b/src/board.rs index 991820a..13f86ec 100644 --- a/src/board.rs +++ b/src/board.rs @@ -6,7 +6,7 @@ pub struct Board { } -enum PieceTypes { +pub enum PieceTypes { Pawn, PawnBlack, Knight, @@ -107,14 +107,14 @@ impl Board { } -enum Color { +pub enum Color { White, Black, } /// Aliases to board square indexes #[allow(dead_code)] -enum Square { +pub enum Square { A1, B1, C1, D1, E1, F1, G1, H1, A2, B2, C2, D2, E2, F2, G2, H2, A3, B3, C3, D3, E3, F3, G3, H3, |