generated from PlexSheep/rs-base
parent
b33038cc50
commit
4993e70309
|
@ -33,11 +33,7 @@ impl GuessResponse {
|
||||||
let finish: bool = if game.step() > game.max_steps() {
|
let finish: bool = if game.step() > game.max_steps() {
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
let mut matched = true;
|
guess == game.solution().0
|
||||||
for p in &status {
|
|
||||||
matched &= p.1 == Status::Matched;
|
|
||||||
}
|
|
||||||
matched
|
|
||||||
};
|
};
|
||||||
Self {
|
Self {
|
||||||
guess,
|
guess,
|
||||||
|
|
Loading…
Reference in New Issue