From e15329b976d2a31df6c05d010b900eb769d0055b Mon Sep 17 00:00:00 2001 From: mos Date: Tue, 17 Dec 2024 21:09:57 +0100 Subject: [PATCH] accept predefined boxes in goals --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 7316a13..769c4d1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -159,6 +159,7 @@ impl Level { } 'X' => Ok(Cell::Wall), '*' => Ok(Cell::Box), + '!' => Ok(Cell::Goal(true)), 'g' => Ok(Cell::Goal(false)), '.' => Ok(Cell::None), _ => Err(ReadError::BadSymbol),