diff --git a/Form1.cs b/Form1.cs index ce5b91b..5854146 100644 --- a/Form1.cs +++ b/Form1.cs @@ -3,13 +3,15 @@ namespace GuessTheCard public partial class Form1 : Form { private int score = 0; + private int previousDice; + private Random random = new Random(); public Form1() { InitializeComponent(); - Random random = new Random(); int randomDice = random.Next(1, 7); + previousDice = randomDice; labelCard.Text = "Result : " + randomDice; labelScore.Text = "Score: " + score; }