c# - Stuck on how to make my scoring system work -
So I'm guessing word games in a Windows Forms program in C #, and there are a requirements that I want Include a scoring system (starts with 100 points, every time a wrong letter is estimated that total 10 points are reduced by 10 points, and if you make correct guesses, then it adds 10 to the total 100 I have.) Everything else works with me. In fact as a way to fix this problem was nothing I could use the help. Have a look at the mind? `
Public Zero Checker (string word) {lblWord.Text =" "; Core liter + = word [0]; Score = score; Update Integer = 0; Update score = score + amount; For (int i = 0; i
What exactly is not working about the score? I just wrote some code real quick, and the score was working fine. I see a lot of things in your code that I do not understand, like:
score = score; Update Integer = 0; Update score = score + amount; In the beginning, and:
update the score = score + amount; LblPoints.Text = (score) .ostring (); Finally, some of your variable names help, such as RTB Gius, tell me that a rich text box has been estimated.
However, your code checks that the letter is wrong, but no, if it is correct:
if (! LetterInWord) {lblScore.Text = (int .Parse (lblScore.Text) - 10) .ostring (); } Other {lblScore.Text = (int.Parse (lblScore.Text) + 10) .ostring (); }
Comments
Post a Comment