Ejemplo n.º 1
0
        private bool IsVaildMove(Point point)
        {
            var boardWidthAndHeight = GameSettings.GameSettingSetBoardSize("Board Size", "Settings");
            var g1 = new Grid.Grid(boardWidthAndHeight.width, boardWidthAndHeight.height);

            try
            {
                g1.accessCoordinate(point.x, point.y);
                return(true);
            }catch (Exception e)
            {
                Console.WriteLine("Corrdinate is not present : {0}", e);
                return(false);
            }
        }