Giter Club home page Giter Club logo

doku's Introduction

doku logo

doku

automated Sudoku solver

Overview

Doku is an automated Sudoku solver for the command line.

Documentation

Use doku -h or doku --help to view command line usage.

Usage: doku [-h] [-i] <input>

Required arguments:
  <input>  the path to the input file

Options:
  -h, --help           show this help menu and exit
  -i, --inputs         show hints on how to format input and exit
  -s, --show-original  show the original parsed board before solving

[COMING SOON] Please visit the documentation site for full documentation.

Install

Install with Homebrew:

brew install wcarhart/tools/doku

Or, download or clone this repository and run:

./doku

Examples

You can specify input via a JSON file or a more human-readable text format. See the puzzles/ folder for some examples.

For example, here is one possible input puzzle:

* * * | 5 * 6 | * * * 
* * 4 | * * * | 8 * * 
* 9 * | 1 * 2 | * 6 * 
---------------------
9 * 8 | * * * | 3 * 2 
* * * | * 9 * | * * * 
1 * 2 | * * * | 4 * 7 
---------------------
* 2 * | 3 * 4 | * 8 * 
* * 7 | * * * | 9 * * 
* * * | 9 * 5 | * * *

If this file was saved in puzzle.txt, you can solve it with:

doku puzzle.txt

Which would print:

2 8 1 | 5 4 6 | 7 3 9 
6 5 4 | 7 3 9 | 8 2 1 
7 9 3 | 1 8 2 | 5 6 4 
---------------------
9 7 8 | 4 6 1 | 3 5 2 
4 3 5 | 2 9 7 | 6 1 8 
1 6 2 | 8 5 3 | 4 9 7 
---------------------
5 2 9 | 3 7 4 | 1 8 6 
3 1 7 | 6 2 8 | 9 4 5 
8 4 6 | 9 1 5 | 2 7 3

doku's People

Contributors

wcarhart avatar

Watchers

James Cloos avatar  avatar  avatar

doku's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.