static char[,] CH_AR_Board = new char[10, 10]; static int player1position = 1; static int player2position = 1; static string currentplayer; static string player1; static string player2; static void Main(string[] args) { Introduction(); //DisplayBoard(); while(player1position < 100 && player2position < 100) { } Dice(currentplayer); Console.ReadKey(true); } static void Introduction() { Console.Title = "Snakes And Ladders"; Console.WriteLine("Welcome to Snakes And Ladders, A Simple Game\n"); Console.WriteLine("Press Any Key To Continue"); Console.ReadLine(); Console.Clear(); Console.WriteLine("Player 1 Enter Your Name\n "); player1 = Console.ReadLine(); Console.WriteLine("Payer 2 Enter Your Name "); player2 = Console.ReadLine(); Console.Clear(); } static void Dice(string player) { Random rnd = new Random(); int IN_random; IN_random = rnd.Next(1, 7); IN_random += player1position; Console.WriteLine("You Rolled A " + IN_random); }
currentplayer
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)