Golden.Man.Sudoku.Solver 1.0.0

dotnet add package Golden.Man.Sudoku.Solver --version 1.0.0
NuGet\Install-Package Golden.Man.Sudoku.Solver -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Golden.Man.Sudoku.Solver" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Golden.Man.Sudoku.Solver --version 1.0.0
#r "nuget: Golden.Man.Sudoku.Solver, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Golden.Man.Sudoku.Solver as a Cake Addin
#addin nuget:?package=Golden.Man.Sudoku.Solver&version=1.0.0

// Install Golden.Man.Sudoku.Solver as a Cake Tool
#tool nuget:?package=Golden.Man.Sudoku.Solver&version=1.0.0

This is a portable and lightweight Sudoku solver implementation in C#.

How to use

int[,] grid =
{
   {0, 0, 0, 0, 0, 0, 0, 6, 7},
   {0, 0, 0, 9, 0, 7, 4, 0, 3},
   {0, 6, 0, 0, 0, 0, 1, 9, 0},
   {1, 0, 0, 0, 7, 3, 0, 0, 0},
   {0, 0, 0, 4, 0, 6, 0, 0, 0},
   {0, 0, 0, 8, 1, 0, 0, 0, 4},
   {0, 2, 1, 0, 0, 0, 0, 5, 0},
   {8, 0, 7, 1, 0, 9, 0, 0, 0},
   {3, 5, 0, 0, 0, 0, 0, 0, 0}
};

bool solved = SudokuSolver.Solve(grid);

if (solved)
{
   // Print out the solution
   for (int i = 0; i < 9; i++)
   {
       for (int j = 0; j < 9; j++)
       {
           Console.Write(grid[i, j] + " ");
       }
       Console.WriteLine();
   }
}
else
{
   Console.WriteLine("No solution");
}

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 2,041 11/23/2013

This is the first release to support Sudoku Solver functionality.