https://github.com/ismailza/sudoku
Sudoku Game: A classic, engaging Sudoku puzzle experience developed in C++ with SFML.
https://github.com/ismailza/sudoku
cpp game sfml sudoku
Last synced: 27 days ago
JSON representation
Sudoku Game: A classic, engaging Sudoku puzzle experience developed in C++ with SFML.
- Host: GitHub
- URL: https://github.com/ismailza/sudoku
- Owner: ismailza
- License: mit
- Created: 2024-01-24T18:40:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-03T15:33:33.000Z (over 2 years ago)
- Last Synced: 2025-03-11T20:20:40.729Z (over 1 year ago)
- Topics: cpp, game, sfml, sudoku
- Language: C++
- Homepage:
- Size: 16.8 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sudoku
Welcome to the Sudoku Game repository! This project is a classic Sudoku puzzle game built using [SFML (Simple and Fast Multimedia Library)](https://www.sfml-dev.org/). Enjoy a user-friendly interface, various difficulty levels, and hours of brain-teasing fun!
The game is developed using a backtracking algorithm to generate and solve the Sudoku puzzles. The algorithm works by filling in the grid with numbers from 1 to the grid size (9 for a standard 9x9 Sudoku grid) aleatorily. If the number is valid, it moves on to the next cell. If the number is not valid, it tries the next number. If no number is valid, it backtracks to the previous cell and tries a different number. This process is repeated until the grid is filled.
## Features
- Classic Sudoku gameplay with a clean, intuitive interface.
- Multiple difficulty levels to challenge both beginners and seasoned players.
- Enhanced audio effects for an immersive experience.
## Screenshots







## Getting Started
### Prerequisites
Ensure you have the following installed on your system:
- A C++ compiler (GCC, Clang, MSVC, etc.)
- [SFML 2.6.1](https://www.sfml-dev.org/download/sfml/2.6.1/)
`Note`:
- If you are using Visual Studio Code, you need to add the SFML include path to your project's `c_cpp_properties.json` file. For example:
Navigate to .vscode/c_cpp_properties.json and add the following to the includePath array in the configurations object:
```json
{
"configurations": [
{
"includePath": [
"/your/path/to/SFML-2.6.1/include"
],
}
]
}
```
- Change the Makefile to reflect the location of your SFML include and lib directories. For example:
```makefile
# SFML include and lib directories
SFML_INCLUDE = "\your\path\to\SFML-2.6.1\include"
SFML_LIB = "\your\path\to\SFML-2.6.1\lib"
```
### Installation
1. Clone the repository:
```bash
git clone https://github.com/ismailza/Sudoku.git
```
2. Navigate to the project directory:
```bash
cd Sudoku
```
3. Compile the project (ensure SFML is correctly set up):
```bash
make
```
4. Run the executable:
```bash
make run
```
## Contributing
Contributions are what make the open-source community such an amazing place to be, learn, inspire, and create. Any contributions you make are greatly appreciated.
1. Fork the Project
2. Create your Feature Branch (git checkout -b feature/feature_name)
3. Commit your Changes (git commit -m 'Add some feature_name')
4. Push to the Branch (git push origin feature/feature_name)
5. Open a Pull Request
## License
Distributed under the MIT License. See `LICENSE` for more information.