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();

Wrong forum. Move your thread to the relavant forum such as C++ or C# under the Software Development.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.