Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehjohn committed Mar 16, 2024
1 parent 4023475 commit b3acff2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Sudoku/SudokuResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ public void LogToConsole()

if (_initialCandidates != null)
{
Console.WriteLine($" - Candidate count: {_initialCandidates.Sum(c => c?.Count)}");
var sum = 0;

for (var i = 0; i < 81; i++)
{
sum += GetInitialCandidates(i)?.Sum() ?? 0;
}

Console.WriteLine($" - Candidate count: {sum}");
}

foreach (var move in History)
Expand Down

0 comments on commit b3acff2

Please sign in to comment.