Unfixes the fix introduced in a previous commit regarding how the computer deduces the answer. ReadMe updated with a thorough explanation of the deduction process.

This commit is contained in:
Joe Nellis
2022-04-08 21:59:14 -07:00
parent 603efe0d7d
commit 5ff1717a53
6 changed files with 389 additions and 283 deletions

View File

@@ -152,7 +152,7 @@ namespace Game
if (isCandidate[index])
{
var (candidateBlacks, candidateWhites) = guess.Compare(candidate);
if (blacks > candidateBlacks || whites > candidateWhites)
if (blacks != candidateBlacks || whites != candidateWhites)
isCandidate[index] = false;
}
}