Skip to content

Marking-Time/dice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

113 Commits
 
 
 
 
 
 

Repository files navigation

Dice Game

Introduction

I built this game for a couple of purposes. First, I'm building a portfolio and considering the unusual nature of this game, I thought that it would be unique. Secondly, I wanted to practice using loops over data structures and this game provided the opportunity. I realize that taking this approach is likely not the most computationally efficient and if I built it again I would choose a different approach that is more efficient and easier to code.

Notes:

  1. The rules of this game are fluid and are finalized by the players before the game starts. There are many ways to play.
  2. To play this game, you must have python installed or be running linux. This game is played on the command line by running dice.py. There is no gui version.
  3. I'm not sure what the official name of this game is. There might not be one.

"123" Dice Game Rules

In the street game a player rolls three dice and the roll is scored as below.

  • "456" - Automatic win - can be tied by the other players creating a tie or push
  • "123" - Automatic Loss
  • "Tripples" - Highest die count wins
  • "Points" - When a player rolls doubles, the number other than the double is the score . For example with a roll of "445" the score would be "Point 5" because the five is left over from the double fours. The doubles "point" to the five.
  • "High Die" - If none of the above occurs the die with the highest face value is the score

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages