public void Add(PlayerScore score) { scores.Add(score); Sort(); Limit(); }
// Constructor public Game(Player player, Difficulty difficulty = Difficulty.NORMAL, int numberOfChallenges = 10) { totalPlayerScore = new PlayerScore(player); this.difficulty = difficulty; CreateChallenges(numberOfChallenges); }