diff options
author | eug-vs <eugene@eug-vs.xyz> | 2024-01-21 18:55:42 +0100 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2024-01-21 18:55:42 +0100 |
commit | f266b20fd559b624fc265905af4e7d971491915a (patch) | |
tree | 3abf067a0cea66e809d93c295c261c26ce6cc5bd /src/grossmeister/mod.rs | |
parent | e5a7d40ce5cab50941a38526c39688d0f1f263e1 (diff) | |
download | chessnost-f266b20fd559b624fc265905af4e7d971491915a.tar.gz |
refactor: use vector-based table implementation
Diffstat (limited to 'src/grossmeister/mod.rs')
-rw-r--r-- | src/grossmeister/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/grossmeister/mod.rs b/src/grossmeister/mod.rs index d45302f..1f1a141 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, move_selector::MoveSelector}; +use self::{ttable::MasterTable, move_selector::MoveSelector}; mod ttable; mod evaluation; @@ -23,7 +23,7 @@ pub struct Grossmeister { /// Transposition table is a cache of all positions that Grossmeister /// has seen and evaluated. /// It's indexex by Zobrist hash of a position mod size - transposition_table: TranspositionTable, + transposition_table: MasterTable, move_selectors: SmallVec<[MoveSelector; 0]>, @@ -41,7 +41,7 @@ impl Grossmeister { pub fn new(board: Board) -> Self { Self { board, - transposition_table: TranspositionTable::default(), + transposition_table: MasterTable::default(), move_selectors: smallvec![MoveSelector::default(); 512], should_halt: Arc::new(AtomicBool::new(false)), debug: false, |