Return early if king is under check and small refactorings

This commit is contained in:
stefiosif
2024-09-04 18:57:00 +03:00
parent fec27b0d02
commit 0815837cd5
4 changed files with 29 additions and 42 deletions

View File

@@ -6,9 +6,6 @@ use crate::{
evaluation::psqt::{mirror_index, piece_square_score},
};
pub const MAX_EVAL: i32 = 100000;
pub const MIN_EVAL: i32 = -100000;
const fn piece_score(piece_type: PieceType) -> i32 {
match piece_type {
PieceType::Pawn => 100,

View File

@@ -1,2 +1,6 @@
pub mod evaluation;
pub mod psqt;
pub const MAX_SCORE: i32 = 100000;
pub const MIN_SCORE: i32 = -100000;
pub const MATE_SCORE: i32 = 50000;