This is a simple Sudoku API built with Go and Gin. It provides an endpoint to generate a new Sudoku game with a unique solution.
- Go 1.16 or higher
- Gin Web Framework
- Clone the repository:
git clone https://github.com/DinohRatiarisandy/Sudoku.git
- Navigate to the project directory
- Install the dependencies:
go mod tidy
go run main.go
Generates a new valid Sudoku game with a unique solution.
URL: /newsudoku
Method: GET
difficulty (optional): Specifies the difficulty level of the Sudoku game. Possible values are easy
, medium
, hard
, evil
. Default is easy
.
e.g: localhost:8080/newsudoku?difficulty=evil
If you want to test this API, it is available online at: elsombrero.pro:1010/newsudoku