Tests Floor

- Entrance cell fixed typo
This commit is contained in:
2024-05-30 18:56:11 +02:00
parent 8bbd7a5ff2
commit 492a0d5c28
5 changed files with 136 additions and 16 deletions

View File

@@ -13,7 +13,7 @@ use std::fmt::Display;
/// gestisce le varie casistiche.
#[derive(Clone, Debug, Deserialize, Serialize)]
pub enum Cell {
Entance,
Entrance,
Exit,
Special(Box<dyn Effect>),
Wall,
@@ -46,7 +46,7 @@ impl Cell {
/// può essere utilizzata per vedere il valore e mostrarlo a terminale.
pub fn as_char(&self) -> char {
match self {
Cell::Entance => ' ',
Cell::Entrance => ' ',
Cell::Exit => '¤',
Cell::Special(effect) => effect.as_char(),
Cell::Wall => '█',