Skip to content

phantranthienan/classic-sudoku

Repository files navigation

Sudoku App

A web-based Sudoku game built with React, styled with Styled Components, and managed using Jotai for state management.

Features

  • Dynamic Sudoku Board: Generates puzzles based on the selected difficulty.
  • Error Tracking: Players can make up to 3 mistakes before the game ends.
  • Hints: Up to 3 hints can be used per game.
  • Timer: Tracks how long the player takes to solve the puzzle.
  • Dark Mode: Toggle between light and dark themes.
  • Undo: Allows players to undo their previous moves.
  • Interactive Numpad: Optimized for mobile and desktop input.
  • Dark Mode: Switch between light and dark themes.

How to Play

  1. Start a Game: Choose your desired difficulty (Easy, Medium, or Hard) on the start screen.
  2. Solve the Puzzle:
    • Click on a cell to select it and type a number using the keyboard or click a number on the numpad.
    • Use the undo button to revert previous moves.
  3. Hints and Errors:
    • You can use up to 3 hints to fill a cell automatically.
    • The game ends after 3 mistakes.
  4. Pause: Click the pause button to halt the timer and show the pause modal.
  5. Complete the Game: Solve the puzzle to see the completion screen.

Demo

Play the Sudoku game here


Technologies Used

  • React - A JavaScript library for building user interfaces.
  • Jotai - A simple and flexible state management library.
  • Styled Components - A library for styling React components.

Author

About

Classic sudoku game made with React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published