A simple desktop dice game developed in Python using Pygame.
The player rolls 5 dice over 5 rounds and collects points based on the values obtained.
At the end of the game, the final score is saved to a local leaderboard, allowing score tracking between sessions.
This project was created as a small Python game that combines:
- graphical interface elements with Pygame
- random dice generation
- custom score calculation
- persistent score storage in a text-based leaderboard
The game starts from a menu screen, continues through a fixed number of rolls, and ends with a game over screen showing the best saved scores.
- Start screen with game instructions
- Roll-based gameplay with 5 dice
- Score calculation after each throw
- Maximum of 5 attempts per game
- Local leaderboard stored in a text file
- Option to replay or exit after the game ends
- Python 3
- Pygame
- Standard Python modules:
randomsys
joc-zaruri/
βββ main.py
βββ leaderboard.txt
βββ requirements.txt
βββ .gitignore
βββ README.md