Skip to content

A web page that generates a playable Sudoku board

License

Notifications You must be signed in to change notification settings

rbondoc96/sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Sudoku

A web app to play everyone's favorite 9x9 game, Sudoku!
Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About the Project

A simple web app that generates a solvable Sudoku grid.

Built With

The app was built using React and TypeScript:

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

The following items are required to begin installation and correctly run the code

  • Node.js v16.6.0
  • npm

Installation

  1. Clone the repo

    git clone https://github.com/rbondoc96/sudoku
  2. Install npm packages

    In the src folder, run npm install to install dependencies

    /src $ npm install

Usage

To start the frontend dev server, use npm run dev-server

/src $ npm run dev-server

Given a certain number of clues, the app generates a Sudoku grid.

As an aiding feature, the grid will highlight all cells (rows, columns, and subgrid) that the current input cell is affecting.

If the user is stuck, they have the option to reveal a hint. The grid chooses a random, empty cell and reveals the value that belongs in that cell.

To solve the grid, the app will either:

  • Check every cell in the grid and compare it with the solution grid
  • Validate that the entire grid is a valid Sudoku

A true Sudoku game has a single unique solution. In the event that the generated Sudoku grid has more than 1 solution, the app validates the entire grid.

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

Any contributions you make are greatly appreciated!

  1. Fork the project
  2. Create a new branch (git checkout -b feature/MyFeature)
  3. Commit your changes (git commit -m 'Added MyFeature')
  4. Push to the branch (git push origin feature/MyFeature)
  5. Open a pull request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Rodrigo Bondoc - [email protected]

Project Link - https://github.com/rbondoc96/sudoku

About

A web page that generates a playable Sudoku board

Resources

License

Stars

Watchers

Forks

Packages

No packages published