/// <summary> /// Rolls all dice in the cup /// </summary> // You must create a method with the below header: public void RollAllDiceInCup() { //die1.RollDie(); //die2.RollDie(); RollTwoDice(); die3.RollDie(); }
public void MyCode() { // The FIRST line of code should be BELOW this line Die die = new Die(); die.RollDie(); int dieRoll = die.GetValue(); Console.WriteLine(dieRoll); Console.WriteLine("....................."); DiceCup diceCup = new DiceCup(); diceCup.RollDice(); totalValue = diceCup.getTotalValue(); generator = new Random(); Thread.Sleep(10); _randomNum = generator.Next(12) + 1; isLarger = diceCup.isTotalValueLargerThan(_randomNum); Console.WriteLine("The dices rolled: {0}", totalValue); Console.WriteLine("Is the value larger than {0}: {1}",_randomNum, isLarger); // The LAST line of code should be ABOVE this line }
public void MyCode() { // The FIRST line of code should be BELOW this line Die die69 = new Die(); die69.RollDie(); // The LAST line of code should be ABOVE this line }
public void MyCode() { // The FIRST line of code should be BELOW this line // Creates die object Die die1 = new Die(); die1.RollDie(); Console.WriteLine(die1.GetValue()); // The LAST line of code should be ABOVE this line }
public void RollTwoDice() { die1red.RollDie(); die2.RollDie(); }