Skip to content

Commit 5bec37e

Browse files
committed
added readme for Sudoku Solver
1 parent 868a79c commit 5bec37e

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

SudokuSolver/kushpo357/Readme.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Sudoku Solver
2+
3+
A web-based Sudoku Solver that allows users to input a 9x9 Sudoku puzzle and solve it with a single click. Built with HTML, CSS, JavaScript, and TailwindCSS.
4+
5+
## Features
6+
- Interactive 9x9 Sudoku grid for input.
7+
- Validates input to allow only numbers 1-9.
8+
- Solves the puzzle instantly or alerts if no solution exists.
9+
- Reset functionality to clear the grid.
10+
11+
## Tech Stack
12+
- **Frontend**: HTML, TailwindCSS for styling.
13+
- **Logic**: JavaScript for puzzle solving using a backtracking algorithm.
14+
15+
## File Structure
16+
- `index.html`: Core structure of the webpage.
17+
- `styles.css`: Styling for the Sudoku grid and buttons.
18+
- `script.js`: Logic for solving the Sudoku puzzle and interactive functionalities.
19+
20+
## How to Use
21+
1. Open `index.html` in your browser.
22+
2. Enter numbers 1-9 in the grid (leave empty cells as blank).
23+
3. Click **Solve** to see the solution or **Reset** to clear the grid.
24+
25+
## Algorithm
26+
- Uses a backtracking approach to solve the Sudoku puzzle.
27+
- Checks each cell to ensure compliance with Sudoku rules.
28+
29+
## Demo
30+
Initial position
31+
![alt text](image.png)
32+
33+
inputing a sudoku problem
34+
![alt text](image-1.png)
35+
36+
submitting and generating a solution
37+
![alt text](image-2.png)
38+
---
39+
40+

SudokuSolver/kushpo357/image-1.png

30.9 KB
Loading

SudokuSolver/kushpo357/image-2.png

51.4 KB
Loading

SudokuSolver/kushpo357/image.png

22.3 KB
Loading

0 commit comments

Comments
 (0)