Skip to content

G4tten/Yahtzee-on-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description 📝

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.

Screenshot 📸

home


home

home



Main features ✨

  1. Local Multiplayer: Supports two players.
  2. Integrated game rules: Shows both basic and complex combinations.
  3. Customised graphics: Use images and fonts to create an immersive atmosphere.
  4. Immersive Audio: Includes sound effects for rolls, dice selection and winnings.
  5. Customisable options: Control music and sound effects.

How to Start🚀

Prerequisites

  • Python 3.12.8

  • Pygame library: Install it with the command:

    pip install pygame

Starting the game

  1. Clone the repository:
    git clone <https://github.com/G4tten/Yahtzee-on-Python>
    cd <folder name>
  2. Run the main file:
    python Yahtzee.py

Game Rules 🃏

Basic Combinations

  • 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.

Complex Combinations

  • 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).

Authors 👩‍💻👨‍💻


Credits and Resources 🎨


License 📄

Yahtzee on Python by Ludovica Gatti & Luigi Gorgone is licensed under CC BY-NC-SA 4.0