mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user