accept predefined boxes in goals

This commit is contained in:
mos 2024-12-17 21:09:57 +01:00
parent c95bd6b5c5
commit e15329b976
1 changed files with 1 additions and 0 deletions

View File

@ -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),