jkapuscik2 / sudoku-solver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sudoku solver

Go Report Card

The script solves sudoku grid provided in a form of .txt file

The script was intended as a learning practise and solves the provided grid in a following ways:

  • synchronously using a backtracking approach
  • using multiple goroutines and communication via channels
  • using wait groups
go build main.go

./main

Available flags:

  -help
        Display help 
  -path string
        Path to fle with sudoku (default "data/1.txt")
  -profile
        If application should be profiled
  -maxWorkers int
        Number of maxWorkers (default number of avaliable CPU)

Testing

go test  ./... -v -bench=.

About


Languages

Language:Go 100.0%