A cross-platform Sudoku game built with Tauri, TypeScript, and Rust. Play the classic number puzzle game on desktop with a clean, modern interface.
- Three difficulty levels: Easy, Medium, and Hard
- Timer to track your solving speed
- Hint feature for when you get stuck
- Validation to check your solution
- Keyboard navigation support
- Mobile-friendly UI with number pad
- Real-time error detection
- Responsive design for all screen sizes
Check out the demo video of the application below:
Tauri is a framework for building lightweight, secure desktop applications with web technologies. Tauri apps combine a Rust backend with a web-based frontend, resulting in smaller, faster, and more secure applications compared to traditional Electron apps.
Key benefits of Tauri:
- Small bundle size: Tauri apps are significantly smaller than Electron apps
- Security-focused: Rust backend provides memory safety and security
- Cross-platform: Build for Windows, macOS, and Linux from a single codebase
- Native performance: Rust backend allows for better performance than JavaScript-only solutions
The application consists of:
- User interface with interactive Sudoku board
- Game logic for selecting cells and inputting numbers
- Real-time validation feedback
- Responsive design for all screen sizes
- Puzzle generation algorithm that ensures unique solutions
- Solver implementation using backtracking
- Validation logic for checking solutions
- Hint system to help players when stuck
- Node.js (v18+)
- Rust (1.70.0+)
- pnpm (or npm/yarn)
- Clone the repository
git clone https://github.com/yourusername/sudoku-tauri.git
cd sudoku-tauri
- Install dependencies
pnpm install
- Run the development server
pnpm tauri dev
To create a production build:
pnpm tauri build
This will create optimized binaries for your current platform in the src-tauri/target/release
directory.
- Start a new game by selecting your desired difficulty (Easy, Medium, Hard)
- Click on a cell to select it
- Enter a number from 1-9 (using keyboard or number pad)
- Use arrow keys for navigation
- If you need help, click the "Hint" button
- Validate your solution when complete
- Challenge yourself to improve your solving time!
src/
- Frontend TypeScript codesrc-tauri/
- Rust backend codesrc/lib.rs
- Core game logic and algorithmssrc/main.rs
- Tauri application entry point
index.html
- Main HTML entry point
This project is licensed under the MIT License - see the LICENSE file for details.
- Tauri for the application framework
- Vite for frontend tooling
- TypeScript for type-safe JavaScript
- Rust for the backend implementation
Contributions are welcome! Please feel free to submit a Pull Request.