public static void GenerateGameResult(DiceGame game) { Player winner = game.TheWinner(); Console.WriteLine("WINNER: " + winner.Name); for (int i = 0; i < winner.History.Count; i++) { Console.WriteLine("Turn " + (i + 1) + ": " + winner.History[i]); } }
public static void PrintOutGameResult(DiceGame diceGame) { Player winner = diceGame.TheWinner(); Console.WriteLine("\n------- Game End. -------\n"); if (winner == null) { Console.WriteLine("\nThere is no Winner.\n"); } else { Console.WriteLine($"The Winner is {winner.Name}.\n"); for (int i = 0; i < winner.History.Count; i++) { Console.WriteLine($" Round({i + 1}) : {winner.History[i]}"); } } Console.WriteLine("\n"); }