private Player playerOneLogin() { string nameOfPlayerOne; UI.printSign("Player One Login"); UI.printPlayerLogin(); nameOfPlayerOne = System.Console.ReadLine(); exitIfQ(nameOfPlayerOne); Ex02.ConsoleUtils.Screen.Clear(); return(new Player(nameOfPlayerOne, false)); }
private Player playerTwoLogin(string io_NameOfPlayerOne) { string nameOfPlayerTwo = null; bool v_WantToPlayVsCompter; UI.printSign("Player Two Login"); v_WantToPlayVsCompter = playerOneChoosingCompetition(io_NameOfPlayerOne); if (v_WantToPlayVsCompter == false) { UI.printPlayerLogin(); nameOfPlayerTwo = System.Console.ReadLine(); exitIfQ(nameOfPlayerTwo); } Ex02.ConsoleUtils.Screen.Clear(); return(new Player(nameOfPlayerTwo, v_WantToPlayVsCompter)); }