Csharp.SudokuSolver
1.0.7
dotnet add package Csharp.SudokuSolver --version 1.0.7
NuGet\Install-Package Csharp.SudokuSolver -Version 1.0.7
<PackageReference Include="Csharp.SudokuSolver" Version="1.0.7" />
<PackageVersion Include="Csharp.SudokuSolver" Version="1.0.7" />
<PackageReference Include="Csharp.SudokuSolver" />
paket add Csharp.SudokuSolver --version 1.0.7
#r "nuget: Csharp.SudokuSolver, 1.0.7"
#:package Csharp.SudokuSolver@1.0.7
#addin nuget:?package=Csharp.SudokuSolver&version=1.0.7
#tool nuget:?package=Csharp.SudokuSolver&version=1.0.7
🧩 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
.txtfiles - 🧠 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
Place your Sudoku puzzle in a
.txtfile using the following format:003600080 009801702 000500006 000010003 085000904 070020000 090007000 053000000 000090004(Use
0for empty cells.)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); }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 | Versions 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. |
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
for net.8