Exemplo n.º 1
0
 /// <summary>
 /// Method that determines if the game is not over yet and generates a new number list.
 /// The score is calculated and stored.
 /// </summary>
 /// <returns>Integer array.</returns>
 public int[] PlayRound()
 {
     if (IsGameOver() == false)
     {
         rounds++;
     }
     int[] numbers = _numberList.FillNumberList();
     score += CalculateRoundScore();
     return(numbers);
 }