fix #1
cargo devel CI / cargo CI (push) Successful in 41s Details

This commit is contained in:
Christoph J. Scherr 2024-03-22 22:47:40 +01:00
parent b33038cc50
commit 4993e70309
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
1 changed files with 1 additions and 5 deletions

View File

@ -33,11 +33,7 @@ impl GuessResponse {
let finish: bool = if game.step() > game.max_steps() {
true
} else {
let mut matched = true;
for p in &status {
matched &= p.1 == Status::Matched;
}
matched
guess == game.solution().0
};
Self {
guess,