private static void PresetState() { ScoreBoard sc = new ScoreBoard(); sc.startMatch("Mexico", "Canada"); Thread.Sleep(20); sc.startMatch("Spain", "Brazil"); Thread.Sleep(20); sc.startMatch("Germany", "France"); Thread.Sleep(20); sc.startMatch("Uruguay", "Italy"); Thread.Sleep(20); sc.startMatch("Argentina", "Australia"); Thread.Sleep(20); sc.updateScore("Mexico", "Canada", 0, 5); Thread.Sleep(20); sc.updateScore("Spain", "Brazil", 10, 2); Thread.Sleep(20); sc.updateScore("Germany", "France", 2, 2); Thread.Sleep(20); sc.updateScore("Uruguay", "Italy", 6, 6); Thread.Sleep(20); sc.updateScore("Argentina", "Australia", 3, 1); scoreBoard = sc; }
private static void startGame() { string homeTeam = IntroduceName("HOME"); string awayTeam = IntroduceName("AWAY"); scoreBoard.startMatch(homeTeam, awayTeam); Write("Game started."); }