diff --git a/crates/game-solver/src/lib.rs b/crates/game-solver/src/lib.rs index 6635b3c..a3af796 100644 --- a/crates/game-solver/src/lib.rs +++ b/crates/game-solver/src/lib.rs @@ -51,6 +51,10 @@ fn negamax + Eq + Hash>( } } + if let Some(stats) = stats { + stats.states_explored.fetch_add(1, Ordering::Relaxed); + } + // TODO: debug-based depth counting // if let Some(stats) = stats { // stats.max_depth.fetch_max(depth, Ordering::Relaxed); @@ -137,10 +141,6 @@ fn negamax + Eq + Hash>( } } - if let Some(stats) = stats { - stats.states_explored.fetch_add(1, Ordering::Relaxed); - } - // fetch values from the transposition table { let score = transposition_table diff --git a/crates/games/src/util/cli/human.rs b/crates/games/src/util/cli/human.rs index 251be7e..4debada 100644 --- a/crates/games/src/util/cli/human.rs +++ b/crates/games/src/util/cli/human.rs @@ -84,10 +84,6 @@ impl Widget for &App { fn render(self, area: Rect, buf: &mut Buffer) { let title = Title::from(" game-solver ".bold().green()); let instructions = Title::from(Line::from(vec![ - " Decrement ".into(), - "".blue().bold(), - " Increment ".into(), - "".blue().bold(), " Quit ".into(), " ".blue().bold(), ]));