Add uci movetime, hash and initialize TT based on size in MBs

This commit is contained in:
stefiosif
2025-02-04 23:53:18 +02:00
parent 908a87bd26
commit b98100aa71
5 changed files with 75 additions and 23 deletions

View File

@@ -2,7 +2,7 @@ use crate::board::board::{Board, Color, PieceType};
use crate::board::game::Game;
use crate::board::state::{Castle, State};
use crate::search::transposition_table::TranspositionTable;
use crate::search::{MAX_DEPTH, MAX_TT_SIZE};
use crate::search::MAX_DEPTH;
use String as FenError;
pub fn from_fen(fen: &str) -> Result<Game, FenError> {
@@ -36,7 +36,7 @@ pub fn from_fen(fen: &str) -> Result<Game, FenError> {
history: History::new(),
mailbox,
hash,
tt: TranspositionTable::new(MAX_TT_SIZE),
tt: TranspositionTable::new(),
killer: [None; MAX_DEPTH as usize],
})
}