public void WinnTextInitialization(Player player) { for (int i = 0; i < 5; i++) { Console.Clear(); Console.BackgroundColor = ConsoleColor.Red; Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine("Spieler " + player.Name + " Sie haben gewonnen!!! YEAHH!!!"); Thread.Sleep(300); Console.Clear(); Console.BackgroundColor = ConsoleColor.Blue; Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Spieler " + player.Name + " Sie haben gewonnen!!! YEAHH!!!"); Thread.Sleep(300); Console.Clear(); Console.ResetColor(); } if (PlayerCollector.RePlay() == false) { Environment.Exit(0); } else { ConnectFourGame.Play(); } }
static void Main(string[] args) { SetWindowPosition(-7, 0, 1934, 1047); ConnectFourGame.Play(); }