示例#1
0
        public Position GetPosition(int x, int y)
        {
            if (MiddleSquare.Contains(x, y))
            {
                return(Position.Middle);
            }
            else if (Q1.Contains(x, y))
            {
                return(Position.Q1);
            }
            else if (Q2.Contains(x, y))
            {
                return(Position.Q2);
            }
            else if (Q3.Contains(x, y))
            {
                return(Position.Q3);
            }
            else if (Q4.Contains(x, y))
            {
                return(Position.Q4);
            }

            return(Position.None);
        }