public void Setup() { try { Console.ForegroundColor = ConsoleColor.White; ControlOutput.ShowFlashScreen(); ControlOutput.ShowHeader(); // get users string[] userSetUp = ControlInput.GetNameFromUser(); _players.Player1.Name = userSetUp[0]; _players.Player1.Win = 0; _players.Player2.Name = userSetUp[1]; _players.Player2.Win = 0; } catch (Exception) { throw; } }
/// <summary> /// Clears screen, displays the header and displays the players /// </summary> /// <param name="player"></param> public static void ResetScreen(Player[] player) { Console.Clear(); ControlOutput.ShowHeader(); ControlOutput.ShowAllPlayer(player); }