Пример #1
0
        public void startGame()
        {
            players[0] = new player();
            players[1] = new player();

            int playerTurn = 0;
            //while(!Keyboard.GetState().IsKeyDown(Keys.Escape))
                playerTurn = startTurn(playerTurn);
            //System.Console.WriteLine("We're done");
            //Exit();
        }
Пример #2
0
        public int startTurn(int playerNum)
        {
            temp = players[playerNum];
            System.Console.WriteLine("This is player " + (playerNum + 1));
            System.Console.WriteLine(players[playerNum].playerBase);

            System.Console.WriteLine("Show next player? \nyes");
            string choice;
            choice = System.Console.ReadLine();
            if (choice == "yes")
            return (playerNum + 1) % 2;
            else
               return playerNum;
        }
Пример #3
0
 public static void doTurn()
 {
     players[0] = new player();
     players[1] = new player();
 }