예제 #1
0
파일: Normal.cs 프로젝트: eamonnjames/turle
        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);
            }
        }