This is a digital version of the popular dice game Yahtzee, implemented using the Pygame library. It is designed for 2 players and includes features such as:
- Dice rolls with selection of results to keep.
- Automated scoring system with classic rules.
- Customised graphical user interface.
- Background music and sound effects.
- Local Multiplayer: Supports two players.
- Integrated game rules: Shows both basic and complex combinations.
- Customised graphics: Use images and fonts to create an immersive atmosphere.
- Immersive Audio: Includes sound effects for rolls, dice selection and winnings.
- Customisable options: Control music and sound effects.
-
Python 3.12.8
-
Pygame library: Install it with the command:
pip install pygame
- Clone the repository:
git clone <https://github.com/G4tten/Yahtzee-on-Python> cd <folder name>
- Run the main file:
python Yahtzee.py
- One: Sum of dice showing 1.
- Two: Sum of dice showing 2.
- Three: Sum of dice showing 3.
- Four: Sum of the dice showing 4.
- Five: Sum of the dice showing 5.
- Six: Sum of the dice showing 6.
- Trips: Three equal dice (sum of all dice).
- Quadris: Four equal dice (sum of all dice).
- Full: A combination of 3 and 2 equal dice (25 points).
- Scale: All different dice (40 points).
- Yahtzee: All equal dice (50 points).
- Font: Casino.ttf [Site links]
- Sound Effects: Sounds by Pixabay.
- Dice Graphics: images taken from Nero Vettori di Vecteezy [Site links]
- Background Images: Created with AI
Yahtzee on Python by Ludovica Gatti & Luigi Gorgone is licensed under CC BY-NC-SA 4.0