Skip to content

Commit

Permalink
Test with 2 threads
Browse files Browse the repository at this point in the history
  • Loading branch information
bdmendes committed Apr 1, 2024
1 parent 009268d commit a43a5ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/winatchess.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use std::{
};

const SCENARIO_SEARCH_TIME: Duration = Duration::new(30, 0);
const SCENARIO_THREADS: u16 = 2;

fn expect_search(fen: &str, mov: &str) {
let constraint = SearchConstraint {
Expand All @@ -26,7 +27,7 @@ fn expect_search(fen: &str, mov: &str) {
global_stop: Arc::new(AtomicBool::new(false)),
threads_stop: Arc::new(AtomicBool::new(false)),
ponder_mode: Arc::new(AtomicBool::new(false)),
number_threads: Arc::new(AtomicU16::new(1)),
number_threads: Arc::new(AtomicU16::new(SCENARIO_THREADS)),
game_history: vec![],
};
let table = SearchTable::new(DEFAULT_TABLE_SIZE_MB);
Expand Down

0 comments on commit a43a5ad

Please sign in to comment.