Example #1
0
        public bool CheckNearMe(QDirection direction, Element[] elements)
        {
            Point me = GetMe();

            if (me == null)
            {
                return(false);
            }

            Point atDirection = direction.Change(me);

            return(IsAt(atDirection.X, atDirection.Y, elements));
        }
Example #2
0
        public bool IsOutOfFieldRelativeToMe(QDirection direction)
        {
            Point me = GetMe();

            if (me == null)
            {
                return(false);
            }

            Point atDirection = direction.Change(me);

            return(IsOutOfField(atDirection.X, atDirection.Y));
        }
Example #3
0
        public string Play()
        {
            GetMe();

            return(QDirection.Down().ToString());
        }