diff options
author | eug-vs <eugene@eug-vs.xyz> | 2024-01-21 17:22:49 +0100 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2024-01-21 17:32:25 +0100 |
commit | 9926ba6c4f97669c9683996a7c9d37499f118135 (patch) | |
tree | bb9aac689d5246201d44af65f52741d42370f4d6 /src/grossmeister/mod.rs | |
parent | 5c931ac8a8c8a1ec83e4ca1e5e6d54844df87eb7 (diff) | |
download | chessnost-9926ba6c4f97669c9683996a7c9d37499f118135.tar.gz |
feat: implement two-tier transposition table
Diffstat (limited to 'src/grossmeister/mod.rs')
-rw-r--r-- | src/grossmeister/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grossmeister/mod.rs b/src/grossmeister/mod.rs index 875f4f8..d45302f 100644 --- a/src/grossmeister/mod.rs +++ b/src/grossmeister/mod.rs @@ -3,7 +3,7 @@ use std::sync::{atomic::AtomicBool, Arc}; use smallvec::{SmallVec, smallvec}; use crate::board::Board; -use self::{ttable::{TranspositionTable, TTABLE_SIZE}, move_selector::MoveSelector}; +use self::{ttable::TranspositionTable, move_selector::MoveSelector}; mod ttable; mod evaluation; @@ -41,7 +41,7 @@ impl Grossmeister { pub fn new(board: Board) -> Self { Self { board, - transposition_table: vec![None; TTABLE_SIZE as usize], + transposition_table: TranspositionTable::default(), move_selectors: smallvec![MoveSelector::default(); 512], should_halt: Arc::new(AtomicBool::new(false)), debug: false, |