diff --git a/bot/src/lib.rs b/bot/src/lib.rs index 890265f..017431e 100644 --- a/bot/src/lib.rs +++ b/bot/src/lib.rs @@ -140,8 +140,7 @@ impl Interface { } } - /// Specifies a line that Cold Clear should analyze before making any moves. The path is - /// sensitive to T-spin status. + /// Specifies a line that Cold Clear should analyze before making any moves. pub fn force_analysis_line(&mut self, path: Vec) { if self.send.send(BotMsg::ForceAnalysisLine(path)).is_err() { self.dead = true; @@ -253,7 +252,7 @@ impl BotState { } pub fn next_move(&mut self, incoming: u32, f: impl FnOnce(Move, Info)) -> bool { - if self.tree.nodes < self.options.min_nodes { + if !self.min_thinking_reached() { return false } diff --git a/bot/src/tree.rs b/bot/src/tree.rs index c6020f5..2558637 100644 --- a/bot/src/tree.rs +++ b/bot/src/tree.rs @@ -216,7 +216,7 @@ impl, R: Clone> TreeState { let range = start as usize..(start + len) as usize; if let [next, rest @ ..] = path { for c in &self.childs[range.clone()] { - if c.mv == *next { + if c.mv.cells() == next.cells() { current = c.node; path = rest; continue 'descend;