diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/board.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 5 | ||||
-rw-r--r-- | src/main.rs | 6 |
3 files changed, 6 insertions, 7 deletions
diff --git a/src/board.rs b/src/board.rs index 3343702..9ff81b1 100644 --- a/src/board.rs +++ b/src/board.rs @@ -501,7 +501,7 @@ impl Board { self.ply -= 1; } - fn perft(&mut self, depth: u8, print: bool) -> (u64, u64, u64, u64, u64) { + pub fn perft(&mut self, depth: u8, print: bool) -> (u64, u64, u64, u64, u64) { if depth == 0 { return (1, 0, 0, 0, 0) // This a leaf, exactly one node } diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..2eaef2b --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,5 @@ +pub mod square; +pub mod bitboard; +pub mod board; +pub mod attacks; +pub mod moves; diff --git a/src/main.rs b/src/main.rs index 9a38593..e7a11a9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,3 @@ -mod square; -mod bitboard; -mod board; -mod attacks; -mod moves; - fn main() { println!("Hello, world!"); } |