hi im new to programming and i was told to create a dice game where a player rolls and the dice rolled will added to the total score until the score is reached its maximum limit but i cant get it to work.. my problem is i cant keep hold of the score. any suggestions ?
Random randomnumber = new Random();
int dice1 = randomnumber.Next(1, 7);
lblDice.Text = dice1.ToString();
int score = Convert.ToInt32(dice1.ToString());
Console.WriteLine(dice1);
if (dice1 >= 1)
score = + dice1;
lblplayer1score.Text = score.ToString();