Remove tt cutoffs, fix capture move sorting, refactor

This commit is contained in:
stefiosif
2024-11-30 00:04:53 +02:00
parent f5b7056347
commit 316f40e6e5
7 changed files with 74 additions and 99 deletions

View File

@@ -10,10 +10,10 @@ pub mod transposition_table;
pub const MAX_DEPTH: u8 = 7;
pub const REMAINING_TIME_DEFAULT: u128 = 100000; // in ms
pub const HARD_LIMIT_DIVISION: u128 = 10;
pub const SOFT_LIMIT_DIVISION: u128 = 20;
pub const HARD_LIMIT_DIVISION: u128 = 10; // % of the remaining time
pub const SOFT_LIMIT_DIVISION: u128 = HARD_LIMIT_DIVISION / 2;
pub const SOFT_EVAL_THRESHOLD: i32 = 500;
pub const MAX_TT_SIZE: u64 = 2000000;
pub const MAX_TT_SIZE: u64 = 1000000;
pub struct SearchResult {
pub best_move: Option<Move>,