Git Product home page Git Product logo

sudoku's Introduction

Sudoku Solver

Sudoku Solver is a Java application that loads a Sudoku puzzle from a text file, solves it, and displays the solution on a simple graphical user interface.

Table of Contents

Installation

To install this project, simply clone the repository and compile the Java files:

git clone https://github.com/user/SudokuSolver.git
cd SudokuSolver
javac *.java

Usage

To run the Sudoku solver, use the following command:

java Sudoku

By default, the Sudoku solver will attempt to solve the puzzle specified in SudokuLab/SudokuNYT.txt.

Creating Your Own Puzzles

You can create your own Sudoku puzzles by creating a new text file in the following format:

.8. .7. .9. 9.. ... ..7 ..2 ... 6..

.3. 6.4 .8. ... ... ... .7. 2.8 .5.

..4 ... 8.. 5.. ... ..2 .1. .9. .3.

Each number represents a filled square in the Sudoku puzzle. An empty square is represented by a dot (.). Each Sudoku puzzle must be a 9x9 grid. After creating your puzzle, save it with the .txt file extension in the SudokuLab directory.

To solve a puzzle from a file you created, change the filename variable in the main method of the Sudoku class to match the name of your file:

String filename = "SudokuLab/YourFileName.txt";

Contributing

Contributions are welcome! Please fork the repository and make changes in your own branch. When you're ready, submit a pull request.

License

Sudoku Solver is released under the MIT License. For more details, see the LICENSE file.

sudoku's People

Contributors

gituser12981u2 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.