Giter Site home page Giter Site logo

sudukobacktracker's Introduction

SudukoBacktracker

A Suduko Solver (Backtracker) written in Go.

This is my first ever program in Go.

Usage

Command Line: ./SudukoSolver <file>

IDE: Edit your run configuration, add a file name to the program arguments.

Input Files

Input files must contain 81 numbers only. These numbers may only be 1 through 9 (inclusive). There must be 9 lines, with 9 numbers each, spaced by whitespace. An example of one line could be:

1 2 3 4 5 6 7 8 9

There can be multiple whitespaces between each number, but there must be 9 numbers total. Empty lines in the input file are skipped. All of these rules allow for easy game formatting, like so:

example input

Output

The output of the program (the solution, if there is one) is printed out to the console. Here are the outputs of the 3 puzzles included in the repository:

Future

These are planned features. Who knows if I'll get around to them.

  1. Create a GUI to show the progression to the solution.
  2. Create different methods to read in the game. Would like it so it just reads in 81 numbers on a single line, and formats it into the 9 x 9 matrix.
  3. Create a Suduko puzzle generator.

sudukobacktracker's People

Contributors

devinkott-rit avatar

Watchers

 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.