Return early if king is under check and small refactorings
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user