Add the ability to set the player names

From TRCCompSci - AQA Computer Science
Revision as of 10:20, 20 November 2017 by Charley (talk | contribs) (Created page with "Somewhere near the top of HaveTurn, while you're declaring variables, you'll want to add the following code: // something here... Console.WriteLine("Player One, input your na...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Somewhere near the top of HaveTurn, while you're declaring variables, you'll want to add the following code:

// something here... Console.WriteLine("Player One, input your name:");

           string PlayerOneName = Convert.ToString(Console.ReadLine());
           Console.WriteLine("Player Two, input you name:");
           string PlayerTwoName = Convert.ToString(Console.ReadLine());

// something here...