Craps Tips Video Source:
Visual C# 2012 How to Program
C# Programming Challenge 8.18: Game of Craps – Part 1: Creating the game
LINK TO PART 2: http://youtu.be/DB0TmVxrUTc
Write an app that runs 1000 games of craps (Fig. 7.8) and answers the following
questions:
a) How many games are won on the first roll, second roll, …, twentieth roll and after the twentieth roll?
b) How many games are lost on the first roll, second roll, …, twentieth roll and after the twentieth roll?
c) What are the chances of winning at craps? (Note: You should discover that craps is one of the fairest casino games.)
d) What is the average length of a game of craps?
RULES:
You roll two dice. The sum of the spots on the two upward faces is calculated.
Sum == 7 OR Sum == 11 – you win if on the first roll
Sum == 2, 3, or 12 – you lose if on the first roll
Sum == 4,5,6,8,9,10 – sum becomes point
– to win, you must continue rolling the dice until you make your point (i.e. roll the same value again).
– You lose by rolling 7 before making your point.
SPECIAL NAMES:
Sum 2 = Snake Eyes
Sum 3 = Trey
Sum 7 = Seven
Sum 11 = Yo Leven
Sum 12 = Box Cars
Learning to code? Follow my C# tutorials for beginners. I do a lot of C# programming challenges and C# projects as part of my homework – every day!
If you are learning to program, nothing beats solving real programming exercises and coding challenges.
So don’t forget to subscribe, as I release new programming videos every day!
Source: YouTube
Thank you so very much for making this tutorial!
Im hoping you can help with my problem. you only have 2 dice calculating the sum. i have 6 dice and the sum cannot be calculated. how would you code full house, 2 sets of three, three pair, etc.