RichDonnellan / yahtzee

General Assembly - Project 1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yahtzee Logo

The object of the game is to score points by rolling five dice to make certain combinations. The dice can be rolled up to three times in a turn to try to make various scoring combinations. A game consists of thirteen rounds. After each round, the player chooses which scoring category is to be used for that round. Once a category has been used, it cannot be used again. The scoring categories have varying point values, some of which are fixed values and others where the score depends on the value of the dice.

A winner is determined by the highest score at the end of the last round. In the event of a tie, both players win.

How to Play

Player(s) will take turns interacting with the dice and score card areas. To roll the dice, click the Roll Dice button. After each roll, decide which dice to use to score by clicking on them. When ready, select the appropriate category in the score card to populate your score.

Ready to play everyone's favorite dice game? Have fun!

Scoring

Upper Section

Category Description Scoring
Aces Any Combination Sum of dice with number 1
Twos Any Combination Sum of dice with number 2
Threes Any Combination Sum of dice with number 3
Fours Any Combination Sum of dice with number 4
Fives Any Combination Sum of dice with number 5
Sixes Any Combination Sum of dice with number 6
     
BONUS If upper section total is 63 or over Add 35 bonus points

Lower Section

Category Description Scoring
Three-Of-A-Kind At least three dice the same Sum of all dice
Four-Of-A-Kind At least four dice the same Sum of all dice
Full House Three of one number and two of another Scores 25
Small Straight Four sequential dice (1-2-3-4, 2-3-4-5, or 3-4-5-6) Scores 30
Large Straight Five sequential dice (1-2-3-4-5 or 2-3-4-5-6) Scores 40
Yahtzee All five dice the same Scores 50
Chance Any combination Sum of all dice

User Stories

As a player, I have the option to play a full game.

As a player, I can enter my name before playing, so that the experience is more personalized on-screen.

As a player, I control the game with a mouse and can simulate dice rolls and populate my score based on the outcome of the dice.

Future Implementations

  • Multiple players
  • Implement Yahtzee Bonus
  • Joker rules
  • Eliminate popups and use modals or unobtrusive alerts
  • Improve styling
  • Use a database to keep track of high scores

Technologies/Frameworks

  • HTML
  • CSS
  • SVG
  • Object-Oriented JavaScript
  • jQuery
  • Bootstrap
  • Semantic UI

About

General Assembly - Project 1


Languages

Language:JavaScript 60.2%Language:HTML 27.9%Language:CSS 11.8%