This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
304 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/// Wrapper over `i32` for scoring positions | ||
pub type Score = i32; | ||
|
||
/// Largest possible score ever achievable | ||
pub const INF: Score = i16::MAX as Score; | ||
|
||
/// Score of mate in 1 move | ||
pub const MATE: Score = INF - 1; | ||
|
||
/// Maximum depth that can be searched | ||
pub const MAX_DEPTH: u32 = 255; | ||
|
||
/// Maximum possible score for mate | ||
pub const MAX_MATE: Score = MATE - MAX_DEPTH as Score; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
pub mod config; | ||
pub mod engine; | ||
pub use config::*; | ||
pub use engine::*; | ||
|
||
pub mod search { | ||
|
Oops, something went wrong.