Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #3
0
        public string Play()
        {
            GetMe();

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