accept predefined boxes in goals
This commit is contained in:
parent
c95bd6b5c5
commit
e15329b976
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue