[Solved] C# Sudoku Board Generator [closed]


Something like this will provide a basic console output of your board.

foreach (var cell in board.Cells)
{
    int x = cell.Column;
    int y = cell.Row;
    Console.SetCursorPosition(x * 2, y * 2);
    Console.Write(cell.Value.HasValue ? cell.Value.Value.ToString() : "  ");
}
Console.ReadKey();

I’m multiplying the X and Y by 2 for the purpose of separating the numbers, but it isn’t necessary.

2

solved C# Sudoku Board Generator [closed]