public override void MakeMove(ref Board aBoard) { int move; Game theGame = new Game(); do { theGame.AskMove(GetPiece()); string X = Convert.ToString(Console.ReadLine()); if (X == "") { move = Convert.ToInt32("9"); } else { move = Convert.ToInt32(int.Parse(X)); } } while (!aBoard.IsLegalMove(move)); aBoard.ReceiveMove(GetPiece(), move); }