Creating a Street Dice Game Pt1

Today, I wanted to build a game and start a project from scratch. I decided on Street Dice. I decided on Street Dice because it has fixed rules and I think it is a perfect beginner project for my skill level.

About a year and a half ago I created an RPG Dice Battle Game but I stopped working in Javascript and I don’t have the confidence to build anything like it today, so I want to start with a small project to get back on a “roll”.

Here are the simplified rules I will be basing the game around:

simplified
Players must first identify the player who will be shooting dice – the shooter. 
The shooter will then need to make a bet followed by the rest of the group in the clockwise direction.
Each player can cover a portion of or all of the shooter’s bet.
Betting continues until the shooter’s wager is matched.
The come out roll comes next. 
This is the game’s first roll and it could end the game if it is a 7, 11, 2, 3 or 12.
 The shooter and any other player who bet in favor of the shooter win the game if a 7 or 11 is rolled. 
 If a 2, 3 or 12 come up when the dice are rolled the shooter and other players who bet for him lose.
A Point number, which is a number other than those mentioned above, must be set up. 
So if the come out roll is not any of those numbers listed above that number will be designated as the point number.
The roll is next and the goal is for the shooter to roll the number identified as the point before he rolls a 7.
 The 7 is referred to an “Out 7” and once the shooter gets this before rolling the point he loses the game.
Rolling dice proceeds until a 7 or the Point is rolled. 
The shooter loses if the 7 comes up and wins if the Point is rolled. 
If other numbers are rolled the shooter continues rolling the dice. The round ends only after a 7 or the point is rolled.

First thing I do is start trying to determine who will go first. I create a couple of functions to get a dice roll and then set up an if statement to see which player wins the dice.

In testing I realized that I didn’t account for a tie, and had to create a while loop so we could roll off until a player was determined as the shooter.

Please watch the video below were I begin the project: