From e4d73dbde183bdff08c1d30936e5f0ac0880ffeb Mon Sep 17 00:00:00 2001 From: Matuush Date: Sun, 3 Nov 2024 11:58:14 +0100 Subject: [PATCH] Highlighting history showed one appearance multiple times --- validate.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate.hpp b/validate.hpp index ec594ee..e2f9fe0 100644 --- a/validate.hpp +++ b/validate.hpp @@ -76,7 +76,7 @@ string format_guess_history(vector sequence, vector guess) { if(sequence[j] == guess[i]) { r[i] = YELLOW + to_string(guess[i]) + BACK; guess[i] = -1; - sequence[i] = -1; + sequence[j] = -1; break; } }