From 1b4dab55c64273d1a1de4c76917b2253a5f659c7 Mon Sep 17 00:00:00 2001 From: eraden Date: Thu, 3 Oct 2024 07:11:40 +0200 Subject: [PATCH] Fix binary map visitor --- maze/src/lib.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/maze/src/lib.rs b/maze/src/lib.rs index 352e3da..0b2caff 100644 --- a/maze/src/lib.rs +++ b/maze/src/lib.rs @@ -578,6 +578,7 @@ impl BinaryMapVisitor BinaryMapVisitor) -> std::fmt::Result { write!(f, "\n"); - for x in 0..11 { - for y in 0..11 { + for y in 0..11 { + for x in 0..11 { let c = match self.0[y * 11 + x] { P => '.', W => '#',