From 56f80a81852ef9fa6c1654c8548751fb898f2fb3 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 21 Jan 2023 04:34:32 +0300 Subject: feat: precompute knight and king attacks --- src/board.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/board.rs') 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, -- cgit v1.2.3