Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Dice Game 🎲

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.

Overview

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.

Features

  • 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

Technologies Used

  • Python 3
  • Pygame
  • Standard Python modules:
    • random
    • sys

Project Structure

joc-zaruri/
β”œβ”€β”€ main.py
β”œβ”€β”€ leaderboard.txt
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ .gitignore
└── README.md

About

A small but complete Python game built with Pygame, featuring five-dice rolls, score tracking, and a persistent local leaderboard.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages