An open API service indexing awesome lists of open source software.

https://github.com/ramtinbadri/sudokubp

Terminal sudoku game written in C/C++ (BP project)
https://github.com/ramtinbadri/sudokubp

console-game cpp

Last synced: over 1 year ago
JSON representation

Terminal sudoku game written in C/C++ (BP project)

Awesome Lists containing this project

README

          

# Terminal Sudoku Game
This project is aimed to offer you a C/C++ implementation of Sudoku game.
> [!NOTE]
> This project was finished within **a week** and it might have bugs. I'd be pleased if you share any of the bugs you encounter on your play.
## Features
### Usernames
You can enter any username to start playing. Note that you can't enter usernames that were taken previously.

![A screenshot of username box taken in-game](https://github.com/user-attachments/assets/d9196330-ed7d-4ae1-bb73-eb3ab4d6090a)

### Main Menu
Once you enter your username, you'll register and enter the main menu:

![A screenshot of the main menu in-game](https://github.com/user-attachments/assets/23e4a319-5004-4c5f-9a66-bcb5f72601ac)

### Difficulty
After you start to play a new game, you can choose between 3 different difficulties (Easy, Medium, Hard). The difficulties vary in time-limit:

![A screenshot of the difficult menu](https://github.com/user-attachments/assets/8c4221a0-17df-44a4-a522-1e7dc1af0e4d)

### The Game
You are assigned to solve a 9x9 sudoku puzzle within the time-limit. You can make 5 mistakes and after that you'll lose the game.

![A screenshot of the sudoku 9x9 table](https://github.com/user-attachments/assets/686571d6-5524-4fd3-913e-4d5b08aa4a57)

> [!IMPORTANT]
> You can save your game by pressing the S key and enter a name for your saved game so you can choose it in the saved games menu. After you save your game you can safely quit the game by pressing the M key
>
>
> ![A screenshot of the saved games menu](https://github.com/user-attachments/assets/17804c1c-1dac-4dc0-bebd-3b8adea5ab94)

You can quit the game by pressing the Q key but you'll lose the game.

### Results
Once you finish your game, you are directed to the *Results* where you can see your score, number of correct moves and wrong moves, time record and...

![A screenshot of results page](https://github.com/user-attachments/assets/39f8094c-fc32-4029-8f74-7dadf1896ab3)

### Leaderboard
You can visit the leaderboard via main menu and see the scores of the previous players.
> [!NOTE]
> In order to see the score of your current user, you have to exit the game so your progress gets saved into the leaderboard and register as a new user.

![A screenshot of the leaderboard](https://github.com/user-attachments/assets/7d38b466-9593-49aa-9be9-bc3500409184)