Fix invalid length and invalid chars case

main
kirbylife 2024-09-04 17:41:40 -06:00
parent cedfd7a73c
commit 1304fab237
1 changed files with 1 additions and 1 deletions

View File

@ -81,8 +81,8 @@ impl Game {
(_, _) => InsertionStatus::Ok,
}
}
(0..=5, _, &GameStatus::Playing, true) => InsertionStatus::LengthError,
(0..=5, 5, &GameStatus::Playing, false) => InsertionStatus::InvalidChar,
(0..=5, _, &GameStatus::Playing, _) => InsertionStatus::LengthError,
(_, _, &GameStatus::Win(_) | &GameStatus::Fail, _) => InsertionStatus::GameOver,
_ => InsertionStatus::UnknownError,
};