Exemple #1
0
        private void CheckGuess(Player player)
        {
            string alertTitle = string.Empty;

            if (guessingGame.CheckGuess(player))
            {
                alertTitle = "You are right!";
            }
            else
            {
                alertTitle = "You are wrong...";
            }

            if (guessingGame.CanContinue)
            {
                ShowAlert(alertTitle, $"{player.FirstName} {player.LastName} has {player.FPPG} points.");
                guessingGame.SetUpTurn();
                SetUpUiForNextRound();
            }
            else
            {
                EndGame();
                ShowAlert(alertTitle, $"{player.FirstName} {player.LastName} has {player.FPPG} points.");
            }
        }