Pasted by rko619 on Sunday, February 21, 2010 2:53 PM
Syntax: Batch File C# CSS HTML INI Java Javascript Perl PHP Plain Text Python SQL VB 6 VB Script VB.NET XML Show Line Numbers
1 if (pg == ("yes")) 2 { 3 //asks the user which game they want to play 4 5 Console.WriteLine("Please pick a Game"); 6 Console.WriteLine("1)Tic-Tac-Toe"); 7 Console.WriteLine("Type the name of the game you would like to play as it appears (e.g. Tic-Tac-Toe)"); 8 Console.ReadLine(); 9 String GS = Console.ReadLine(); 10 if (GS ==("Tic-Tac-Toe")) 11 { 12 //runs game 'tic tac toe' 13 14 15 } 16 }