We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 638994a commit cd9290bCopy full SHA for cd9290b
Projects/Dice Game/Program.cs
@@ -1,8 +1,5 @@
1
using System;
2
3
-int playerRandomNum;
4
-int rivalRandomNum;
5
-
6
int playerPoints = 0;
7
int rivalPoints = 0;
8
@@ -14,13 +11,13 @@
14
11
15
12
Console.ReadKey();
16
13
17
- playerRandomNum = random.Next(1, 7);
+ int playerRandomNum = random.Next(1, 7);
18
Console.WriteLine("You rolled a " + playerRandomNum);
19
20
Console.WriteLine("....");
21
System.Threading.Thread.Sleep(1000);
22
23
- rivalRandomNum = random.Next(1, 7);
+ int rivalRandomNum = random.Next(1, 7);
24
Console.WriteLine("Rival rolled a " + rivalRandomNum);
25
26
if (playerRandomNum > rivalRandomNum)
0 commit comments