Skip to content

This Python script implements a simple multiplayer dice rolling game for 2 to 4 players. The objective is to reach a maximum score of 69. Players take turns rolling a six-sided die, accumulating points until they decide to hold or roll a 1.

Notifications You must be signed in to change notification settings

Renuma1618/dice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Dice Rolling Game for Multiple Players

This Python script implements a simple multiplayer dice rolling game for 2 to 4 players. The objective is to reach a maximum score of 69. Players take turns rolling a six-sided die, accumulating points until they decide to hold or roll a 1.

  • Player Input: The script allows the user to enter the number of players (between 2 and 4).
  • Turn-based Gameplay: Each player takes turns to roll the die and accumulate points during their turn.
  • Roll Mechanism:
    • Players can choose to roll the die or hold their current score.
    • If a player rolls a 1, their turn ends, and they lose the points accumulated during that turn.
    • Players keep rolling until they either roll a 1 or choose to hold.
  • Game End: The first player to reach or exceed a score of 69 wins the game.

This script provides a simple way to simulate a dice game and demonstrate core programming concepts such as loops, conditionals, and functions in Python.

About

This Python script implements a simple multiplayer dice rolling game for 2 to 4 players. The objective is to reach a maximum score of 69. Players take turns rolling a six-sided die, accumulating points until they decide to hold or roll a 1.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages