From 9818538e50ca97b92ca432b25262fffb86527529 Mon Sep 17 00:00:00 2001 From: Nick Drozd Date: Mon, 12 Aug 2024 18:08:21 -0400 Subject: [PATCH] Check colors before states --- src/reason.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reason.rs b/src/reason.rs index fd148c64..a3c41934 100644 --- a/src/reason.rs +++ b/src/reason.rs @@ -67,7 +67,7 @@ fn cant_reach( continue; }; - if at_edge && state == next_state && tape.scan == next_color + if at_edge && tape.scan == next_color && state == next_state { return false; }