An open API service indexing awesome lists of open source software.

https://github.com/mkboudreau/sudoku

Sudoku Solver
https://github.com/mkboudreau/sudoku

assignment not-maintained tinkering

Last synced: 4 months ago
JSON representation

Sudoku Solver

Awesome Lists containing this project

README

          

# Sudoku Solver
## Go Challenge #8

This program has some fun to it. It has two different approaches (aka finders) to solve sudoku puzzles and it also will colorize the solution as it is solving it, including showing backtracking.

Works best with a black terminal.

## Getting the Program

go get github.com/mkboudreau/sudoku
make
#optional
#make install

## Usage

### Two Modes of Operation
1. Provide a board (3 different ways)
- `./sudoku < sample`
- `cat sample | ./sudoku`
- `./sudoku `

2. Generate a board
- `./sudoku -g `

### Options
`-h` Highlights the solution
`-p` Shows the game actually being solved. Very Fun! Enlarge your terminal. :)
`-t

### Solves the sample file and displays the difficulty
- Option 1: `./sudoku < sample`

- Option 2: `cat sample | ./sudoku`

### Solves the sample file, highlights the solution
cat sample | ./sudoku -h

### Solves the sample file, showing the solution at a very fast speed
cat sample | ./sudoku -p

### Solves the sample file, showing the solution at a slower speed and using the rank finder
cat sample | ./sudoku -p -t 500ms -f rank

### Creates a hard puzzle, shows the puzzle, and prompts user to solve
./sudoku -g 5

### Creates a hard puzzle, auto-solves using the rank finder and shows it solve with a 250ms delay
./sudoku -f rank -p -t 250ms -g 5 -a