aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-08-22 01:12:25 +0300
committereug-vs <eugene@eug-vs.xyz>2023-08-22 01:12:54 +0300
commitbc599d145a8d3a5e69128bc9e702ac7a32d73a4c (patch)
treef3c5f07a6b260ffc8bbee51c4e05c8184bb4f992
parent67247cb4f2985de052c1edb8b7a831c7df241719 (diff)
downloadchessnost-bc599d145a8d3a5e69128bc9e702ac7a32d73a4c.tar.gz
fix: typing in benchmark
-rw-r--r--benches/search.rs4
-rw-r--r--src/grossmeister/mod.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/benches/search.rs b/benches/search.rs
index 2f482ce..26c4c09 100644
--- a/benches/search.rs
+++ b/benches/search.rs
@@ -1,4 +1,4 @@
-use std::{time::{Instant, Duration}, f32::INFINITY};
+use std::{time::Instant, f32::INFINITY};
use chessnost::{board::{Board, io::IO}, grossmeister::Grossmeister};
fn main() {
@@ -7,7 +7,7 @@ fn main() {
let mut gm = Grossmeister::new(board);
let start = Instant::now();
- let (score, pv) = gm.iterative_deepening(6, Duration::from_secs(15), true);
+ let (score, pv) = gm.iterative_deepening(8);
println!("Finished in {:?}: score={:?} {:?}", start.elapsed(), score, pv);
gm.board.print();
diff --git a/src/grossmeister/mod.rs b/src/grossmeister/mod.rs
index 3473d1e..67b20bd 100644
--- a/src/grossmeister/mod.rs
+++ b/src/grossmeister/mod.rs
@@ -1,6 +1,6 @@
use std::sync::{atomic::AtomicBool, Arc};
-use crate::{board::Board, moves::Move};
+use crate::board::Board;
use self::ttable::{TranspositionTable, TTABLE_SIZE};
mod ttable;
@@ -15,7 +15,7 @@ mod UCI;
pub struct Grossmeister {
/// GM's internal board representation
/// This is usually a copy of a real board
- board: Board,
+ pub board: Board,
/// Transposition table is a cache of all positions that Grossmeister
/// has seen and evaluated.