internal void FinishWord() { if (Game.CheckWord(SelectedWord.ToLower())) { MainV.ResultTextBlock.Text = "correct"; MainV.ResultTextBlock.Foreground = Brushes.DarkGreen; GameScore[GamePlayer] += SelectedWord.Length; switch (GamePlayer) { case 1: MainV.GameScoreRightTextBlock.Text = GameScore[GamePlayer].ToString(); break; default: MainV.GameScoreLeftTextBlock.Text = GameScore[GamePlayer].ToString(); break; } } else { MainV.ResultTextBlock.Text = "incorrect"; MainV.ResultTextBlock.Foreground = Brushes.Red; } string proposeWord = Game.ProposeWord(RandomWord); if (proposeWord.Length > SelectedWord.Length) { MainV.ProposeWordTextBlock.Text = proposeWord; MainV.ProposeStackPanel.Visibility = Visibility.Visible; } else { MainV.ProposeStackPanel.Visibility = Visibility.Hidden; } MainV.ResultStackPanel.Visibility = Visibility.Visible; NewGame(); }