Esempio n. 1
0
        public int Move()
        {
            int next_move = -1;

            do
            {
                Console.Write("Where do you want to place your piece?");
                next_move = int.Parse(Console.ReadLine());
            } while (!Board.CanPlace(next_move) && next_move > 0 && next_move < Board.HEIGHT * Board.WIDTH);
            return(next_move);
        }