Learning fix

This commit is contained in:
Matúš Púll 2024-12-11 14:00:00 +01:00
parent 64249b1465
commit 3cd8d33800

View file

@ -122,7 +122,7 @@ vector<bool> Solver::extract_info(Historic_guess hist) {
col_was_cleaned[hist.guess[n]] = true;
for(int n = 0; n < N; n++)
if(guess[n] > -1 && col_was_cleaned[guess[n]])
if(guess[n] > -1)
for(int n2 = 0; n2 < N; n2++)
if(known.final_color(n2) != guess[n])
known.cannot_be(n2, guess[n]);