//when new word is picked public void ResetGame() { TheWordText.Text = "The Word Being Guessed:"; PossibleText.Text = "# of Possible Words Left:"; LettersLeftText.Text = "Letters Left:"; BadGuessesText.Text = "Bad Guesses:"; GoodGuessesText.Text = "Good Guesses:"; GuessesLeftText.Text = "Guesses Left:"; GoodGuessesText.Hide(); GuessCount = 9; GameStarted = true; GuessCountLabel.Text = GuessCount.ToString(); GuessCountLabel.Show(); WinningGif.Hide(); RightButton.Show(); WrongButton.Show(); GuessText.Show(); GoodGuesses = ""; BadGuesses = ""; PossibleLetters = "etainoshrdlucmfwygpbvkqjxz"; //most popular letters based on https://en.oxforddictionaries.com/explore/which-letters-are-used-most GuessesSoFar = ""; label1.Text = ""; label2.Text = ""; test.Text = ""; TheWord = ""; Guess = PossibleLetters[0].ToString(); label2.Text = Guess; IndexButton.Hide(); IndexInfo.Hide(); TipText.Hide(); }
//when new word is picked public void ResetGame() { GuessCount = 9; GameStarted = true; GuessCountLabel.Text = GuessCount.ToString(); GuessCountLabel.Show(); WinningGif.Hide(); GuessButton.Show(); GoodGuesses = ""; BadGuesses = ""; PossibleLetters = "etainoshrdlucmfwygpbvkqjxz"; //most popular letters based on https://en.oxforddictionaries.com/explore/which-letters-are-used-most GuessesSoFar = ""; label1.Text = ""; label2.Text = ""; test.Text = ""; TheWord = ""; }