static void Main() { ScoreBoard currentScoreBoard = new ScoreBoard(); while (new GameEngine(currentScoreBoard, ScoreBoard.ShowScoreBoard).Run()) { } }
public GameEngine(ScoreBoard scoreBoard, TopScoresDelegate showScoreBoard) { this.scoreBoard = scoreBoard; this.showTopScores = showScoreBoard; }
public static void ShowScoreBoard(GameEngine currentGame, ScoreBoard currentScoreBoard) { Console.WriteLine(); Console.WriteLine(currentScoreBoard.ToString()); }