https://github.com/debug-ing/sudokugo
sudoku library for golang
https://github.com/debug-ing/sudokugo
go golang sudoku sudoku-generator sudoku-solver
Last synced: 3 months ago
JSON representation
sudoku library for golang
- Host: GitHub
- URL: https://github.com/debug-ing/sudokugo
- Owner: debug-ing
- Created: 2025-02-01T19:38:35.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-04-02T13:36:59.000Z (3 months ago)
- Last Synced: 2025-04-02T14:32:19.135Z (3 months ago)
- Topics: go, golang, sudoku, sudoku-generator, sudoku-solver
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sudokugo
A simple and efficient Sudoku library for Go. This library provides the essential functionality to generate, solve, and validate Sudoku puzzles. It is designed for developers who want to integrate Sudoku features into their Go applications.## Features
* Sudoku Generator: Generate random Sudoku puzzles.
* Sudoku Solver: Solve any valid Sudoku puzzle.
* Validation: Check if a given Sudoku puzzle is valid.
* Easy Integration: Simple API for seamless integration into Go applications.## Installation
```sh
go get github.com/debug-ing/sudokugo
```## Usage
```go
package mainimport (
"fmt""github.com/debug-ing/sudokugo"
)func main() {
data := sudokugo.NewSudoku().SetLevel(sudokugo.Extreme).InitBoard().RemoveNumbers().GetBoard()
fmt.Print("Sudoku Board\n", data)
result := sudokugo.NewSudoku().SetBoard(data).Solve().GetStatusBoard()
fmt.Println(result)
board := sudokugo.NewSudoku().SetLevel(sudokugo.Extreme).InitBoard().RemoveNumbers()
fmt.Println(board.IsValid(1, 1, 1))
}
```## Contribute
We welcome contributions! If you have any ideas, improvements, or bug fixes, feel free to open an issue or a pull request.