Skip to content

A fast-paced probability puzzle game where you roll animated dice, predict outcomes, and build your score using logic and luck. Designed to make statistics intuitive through gameplay with simple UI and smooth dice animations.

Notifications You must be signed in to change notification settings

codeWace/Probability-Dice-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Probability Dice Game 🎲

Description:
A fast-paced dice-based game that teaches probability through prediction and chance. Roll animated dice, predict outcomes, and build your score using logic and luck. Simple retro UI, smooth dice animations, and educational fun for all ages.


Features

  • Animated dice rolls using 24 split images
  • 8+ probability questions with scoring
  • Score tracking and simple restart / game over system
  • Clean UI and retro font (Press Start 2P)
  • Smooth gameplay with simple background

Controls

  • Space → Roll the dice
  • Number Keys / Input → Answer probability questions
  • Restart → Reset the game after game over (Press 'R')

Installation

  1. Clone this repository:
    git clone https://github.com/codeWace/Probability-Dice-Game.git
    

Navigate to the game folder:

  1. Copy code:
    cd "Probability Dice Game"
  2. Install dependencies:
    pip install pygame
  3. Run the game:
    python main.py
    

Credits & Licenses

1- Font: Press Start 2P by The Press Start 2P Project Authors (CodeMan38)

  • Licensed under the SIL Open Font License 1.1
  • License file included as assets/fonts/OFL.txt

Dice Asset:

2D Dice by Touzi

  • Licensed under CC0 (Public Domain) - free to use, attribution given voluntarily.
  • License file included as assets/dice/LICENSE.txt

License

  • This project is for educational and non-commercial purposes.
  • All assets and fonts are used under their respective licenses.

Gameplay Preview

Game Game

Notes

  1. Questions and score sizes are adjustable in main.py under the font definitions.
  2. Dice roll animation can be adjusted by changing the frame speed in main.py.
  3. The background is static for smooth performance but can be replaced or animated.

About

A fast-paced probability puzzle game where you roll animated dice, predict outcomes, and build your score using logic and luck. Designed to make statistics intuitive through gameplay with simple UI and smooth dice animations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages