Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pirobtumen/sudoku-solver
Solve sudokus in Go/C++ using backtracking.
https://github.com/pirobtumen/sudoku-solver
cpp go golang programming-challenges sudoku
Last synced: 5 days ago
JSON representation
Solve sudokus in Go/C++ using backtracking.
- Host: GitHub
- URL: https://github.com/pirobtumen/sudoku-solver
- Owner: pirobtumen
- License: mit
- Created: 2016-04-03T18:46:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-29T11:08:24.000Z (over 3 years ago)
- Last Synced: 2024-08-03T23:28:06.916Z (5 months ago)
- Topics: cpp, go, golang, programming-challenges, sudoku
- Language: C++
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-golang-repositories - sudoku-solver
README
# sudoku-solver
Simple algorithm for solving sudokus using backtracking.
> I love programming challenges. I developed a C++ version some years ago. Now I've added a Go version just for fun, in order to improve my coding skills.
## Usage
### Cpp
```
$ cd cpp
$ make
$ ./sudoku-solver
```### Go
```
$ cd go
$ go run main.go
```This version has unit testing, that you can run with the command `go test -v ./...`.
## Input
A text file sudoku where:
- Each number is a sudoku value [1-9].
- Nine rows, nine columns.
- Unkown numbers are represented with 'x'.Example files:
- sudoku_easy.txt
- sudoku_hard.txt