Coder Social home page Coder Social logo

olnarrosh / numericpuzzlesolver Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 30 KB

A solver for grid-based number puzzles (such as Sudoku, Kakuro, Str8ts, Killer Sudoku, Takuzu, …) with CLI and GUI versions.

License: MIT License

C# 100.00%
csharp sudoku kakuro killer-sudoku takuzu str8ts inshi-no-heya

numericpuzzlesolver's Introduction

Usage

The GUI version can be used to input puzzles, save them to or load them from files, and solve them.

The CLI version reads one or more puzzles from files given as arguments and solves them. In order for it to recognise the puzzle type, it has to be specified either as the extension of each file (e. g. "Numeric Puzzle Solver" sudoku.su kakuro.ka), or, if all files are the same type, the extension belonging to that type can be given as the first argument (e. g. "Numeric Puzzle Solver" su sudoku1 sudoku2).

Available puzzle types and extensions

Puzzle type File extension
Hyper Sudoku hs
Inshi No Heya in
Kakuro ka
Killer Sudoku ks
Latin Square ls
Str8ts s8
Sudoku su
Sudoku X sx
Takuzu ta

File format

For Killer Sudoku: Each line in the file contains a list of coordinates and finally a number, all separated by spaces, that indicate the area and value of a cage (e. g. 4,6 4,7 3,7 3,8 10).

For Kakuro and Inshi No Heya: Entries are represented similarly to cages in Killer Sudoku, except that only the coordinates of the first and the last cell are specified (e. g. 2,4 6,4 16).

For others: Each line represents a row in the grid and lists its cells, separated by spaces; cells with initially known values are represented by that number, others by dots (.). In Str8ts, a hash (#) indicates a black cell; if the cell contains no clue, an additional dot is unnecessary, otherwise its value can be before or after the hash, without a separator.

numericpuzzlesolver's People

Contributors

olnarrosh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.