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)); }
public bool IsOutOfFieldRelativeToMe(QDirection direction) { Point me = GetMe(); if (me == null) { return(false); } Point atDirection = direction.Change(me); return(IsOutOfField(atDirection.X, atDirection.Y)); }
public string Play() { GetMe(); return(QDirection.Down().ToString()); }