Giter Site home page Giter Site logo

sudoku-savant's Introduction

Sudoku Savant

Sudoku Savant is a classic Sudoku puzzle game designed to provide an engaging and interactive experience for Sudoku enthusiasts. Built with plain HTML, CSS, and JavaScript, this game allows users to play Sudoku directly in their browser.

Features

  • Dynamic Puzzle Generation: Enjoy an endless number of Sudoku puzzles generated on the fly with varying levels of difficulty.
  • Solver Algorithm: Built-in solver algorithm that ensures every puzzle has a unique solution.
  • Interactive UI: Simple and responsive user interface for desktop and mobile browsers.
  • Local Play: Play the game offline - just clone the repo and open index.html in your browser.

Getting Started

To run Sudoku Savant locally:

  1. Clone the repository to your local machine.
  2. Navigate to the cloned directory.
  3. Open the index.html file in your preferred browser.
  4. Start solving puzzles!

Puzzle Generation Logic

The puzzle generation logic in Sudoku Savant ensures that each game is both challenging and solvable. A fully solved board is generated first, ensuring a unique solution. Then, a number of cells are removed based on the selected difficulty level - fewer cells are removed for an easier game, while more cells are removed for a harder challenge.

Solver Logic

Sudoku Savant's solver uses a backtracking algorithm to fill in the puzzle, which mimics the way a human might attempt to solve Sudoku by trying numbers and backtracking upon hitting a dead end. It's efficient and guarantees a solution if one is available.

Contributions

We welcome contributions to Sudoku Savant. If you have ideas for improvements or have found a bug, please open an issue or a pull request.

License

Sudoku Savant is open source and is available under the MIT License.

Enjoy your game of Sudoku!

sudoku-savant's People

Contributors

varun-nz avatar 1231varun avatar

Stargazers

 avatar

Watchers

 avatar

sudoku-savant'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.