From 4993e70309f98145b6095cc261eac766b70050b0 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 22 Mar 2024 22:47:40 +0100 Subject: [PATCH] fix #1 --- src/game/response.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/game/response.rs b/src/game/response.rs index 2830e22..db01b68 100644 --- a/src/game/response.rs +++ b/src/game/response.rs @@ -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,