From b3acff26db2a10b06c32869e32fca9aa8f72354c Mon Sep 17 00:00:00 2001 From: Stevo Date: Sat, 16 Mar 2024 13:05:25 +0000 Subject: [PATCH] WIP --- src/Sudoku/SudokuResult.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Sudoku/SudokuResult.cs b/src/Sudoku/SudokuResult.cs index 4b6f4a7..de0ef18 100644 --- a/src/Sudoku/SudokuResult.cs +++ b/src/Sudoku/SudokuResult.cs @@ -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)