Csharp.SudokuSolver 1.0.7

dotnet add package Csharp.SudokuSolver --version 1.0.7
                    
NuGet\Install-Package Csharp.SudokuSolver -Version 1.0.7
                    
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="Csharp.SudokuSolver" Version="1.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Csharp.SudokuSolver" Version="1.0.7" />
                    
Directory.Packages.props
<PackageReference Include="Csharp.SudokuSolver" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Csharp.SudokuSolver --version 1.0.7
                    
#r "nuget: Csharp.SudokuSolver, 1.0.7"
                    
#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.
#:package Csharp.SudokuSolver@1.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Csharp.SudokuSolver&version=1.0.7
                    
Install as a Cake Addin
#tool nuget:?package=Csharp.SudokuSolver&version=1.0.7
                    
Install as a Cake Tool

🧩 Sudoku Solver

A lightweight C# console application developed by Systecs, designed to read, solve, and display Sudoku puzzles from simple .txt files.
The solver automatically interprets the puzzle, applies logical solving techniques, and outputs the result in a clear console format.


🚀 Features

  • ✅ Reads Sudoku puzzles from plain .txt files
  • 🧠 Automatically solves the puzzle using logical algorithms
  • 📄 Supports JSON serialization and deserialization
  • 💬 Clean console output with formatted grid display
  • ⚙️ Modular code structure (Input, Logic, Output)
  • 💻 100% written in C# (.NET)

📂 Project Structure

SudokuSolver/
│
├── BasicClass/          # Core classes like Cell and Block
├── Logic/               # Solving algorithms and Sudoku logic
├── Input/               # Handles reading puzzles from text files
├── Output/              # Displays Sudoku and results in console
│
├── Program.cs           # Main entry point
├── README.md            # This file
├── LICENSE              # MIT License
└── sudoku.txt           # Example Sudoku puzzle

⚙️ How to Use

  1. Place your Sudoku puzzle in a .txt file using the following format:

    003600080
    009801702
    000500006
    000010003
    085000904
    070020000
    090007000
    053000000
    000090004
    

    (Use 0 for empty cells.)

  2. Run the console application: bsp main with the following code in Program.cs:

    static void Main(string[] args)
    {
       string path = "sudoku.txt";
       Cell[,] grid = InputTxt.GetCellsFromText(path);
    
       Sudoku sudoku = new Sudoku(grid);
    
       string result = sudoku.Solve();
    
       SudokuOutput.ShowSudoku(result);
    }
    
  3. The solved Sudoku will be displayed in the console:

    5 3 1 | 6 7 2 | 4 8 9
    6 4 9 | 8 3 1 | 7 5 2
    ...
    

🧱 Technologies Used

  • Language: C#
  • Framework: .NET 8.0
  • Libraries: Newtonsoft.Json
  • IDE: Visual Studio 2022

💡 Example Output


5 3 1 | 6 7 2 | 4 8 9
6 4 9 | 8 3 1 | 7 5 2
8 2 7 | 5 4 9 | 3 1 6
------+-------+------
9 6 2 | 4 1 5 | 8 7 3
1 8 5 | 7 6 3 | 9 2 4
7 4 3 | 9 2 8 | 5 6 1
------+-------+------
2 9 6 | 1 8 7 | 4 3 5
4 5 3 | 2 9 6 | 1 8 7
8 7 1 | 3 5 4 | 2 9 6


🧑‍💻 Author

Systecs
Blake Huettermann blake.huettermann@systecs.com


⚖️ License

This project is licensed under the MIT License.

Copyright (c) 2025 Systecs
Released under the MIT License.

You are free to use, modify, and distribute this software for any purpose.


Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.7 93 1/14/2026
1.0.6 97 1/14/2026
1.0.5 600 12/1/2025
1.0.4 202 11/25/2025
1.0.3 412 11/20/2025
1.0.2 425 11/20/2025
1.0.1 411 11/20/2025
1.0.0 424 11/20/2025

for net.8