Question: I need help writing this in ruby. Create a dice game where a pair of dice are rolled repeatedly until both die values match. Since

 I need help writing this in ruby. Create a dice game

I need help writing this in ruby.

Create a dice game where a pair of dice are rolled repeatedly until both die values match. Since there's no user input for this program, the rolls will happen one after the other and the program will end quickly. Here's an example of how the program should operate. Keep in mind that since the values are randomly determined, the program will look different every time it is run. HERE COMES THE DICE! Roll #1: 3 Roll #2: 5 The total is 8! Roll #1: 6 Roll #2: i The total is 7! Roll #1: 2 Roll #2: 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!