Fork of React Tailwind Starter
✓ Published0🌍 Public
An interactive Sudoku game built with React 19 and Tailwind CSS 4 lets users fill a 9x9 grid with digits 1–9 across three difficulty levels. The interface displays the board, highlights selected cells, and provides buttons for reset and auto-solve. Puzzle generation, move validation, and the backtracking solver come from the `generateSudoku`, `isValidMove`, and `solveSudoku` functions in `utils/sudokuLogic.js`. React state manages the board, original puzzle, selection, and win detection, while CDN-imported React and Tailwind power the responsive UI.
AI-generated descriptionSudoku App
A React-based Sudoku game built with React, Tailwind CSS, and vanilla JavaScript.
Features
- Generate Random Puzzles: Three difficulty levels (Easy, Medium, Hard)
- Interactive Grid: Click on cells to select and enter numbers (1-9)
- Auto-solve: Solve any puzzle instantly with the Solve button
- Reset: Clear your progress and start over
- Validation: Highlights incorrect entries and validates the complete solution
- Responsive Design: Works on desktop and mobile devices
How to Play
- Select a difficulty level to generate a new puzzle
- Click on empty cells and type numbers 1-9
- Fill the grid so that every row, column, and 3x3 box contains the digits 1-9
- Click "Solve" for an instant solution
- Click "Reset" to clear your entries and try again
Technologies Used
- React 19.1.0
- Tailwind CSS 4
- JavaScript ES6+
Running the App
Simply open index.html in a modern web browser. The app
uses CDN imports for React and Tailwind CSS.
MIT Licensed