Difference between revisions of "Add the ability to set the player names"
(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...") |
|||
Line 1: | Line 1: | ||
Somewhere near the top of HaveTurn, while you're declaring variables, you'll want to add the following code: | Somewhere near the top of HaveTurn, while you're declaring variables, you'll want to add the following code: | ||
+ | <syntaxhighlight lang=Csharp> | ||
// something here... | // something here... | ||
Console.WriteLine("Player One, input your name:"); | Console.WriteLine("Player One, input your name:"); | ||
Line 7: | Line 8: | ||
string PlayerTwoName = Convert.ToString(Console.ReadLine()); | string PlayerTwoName = Convert.ToString(Console.ReadLine()); | ||
// something here... | // something here... | ||
+ | </syntaxhighlight> |
Revision as of 11:21, 20 November 2017
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...