From f60c573ba71207c18a28413e3940a4e21b07c73f Mon Sep 17 00:00:00 2001 From: eug-vs Date: Tue, 21 Feb 2023 17:49:51 +0300 Subject: refactor: create grossmeister module --- src/board/ttable.rs | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/board/ttable.rs (limited to 'src/board/ttable.rs') diff --git a/src/board/ttable.rs b/src/board/ttable.rs deleted file mode 100644 index 9f9e0b0..0000000 --- a/src/board/ttable.rs +++ /dev/null @@ -1,25 +0,0 @@ -use crate::moves::Move; - -/// https://www.chessprogramming.org/Node_Types -#[derive(Debug, PartialEq, Clone, Copy)] -pub enum NodeType { - /// Principal variation node - exact score - PV, - /// Fail-high - Cut, - /// Fail-low - All, -} - -#[derive(Debug, PartialEq, Clone, Copy)] -pub struct TranspositionTableItem { - /// Zobrist hash of this position - pub hash: u64, - pub mov: Move, - pub depth: u8, - pub score: f32, - pub node_type: NodeType, -} - -pub const TTABLE_SIZE: u64 = 2u64.pow(24); -pub type TranspositionTable = Vec>; -- cgit v1.2.3