Ejemplo n.º 1
0
        public static ICoordinate Travel(this ICoordinate coordinate, ref IDirection direction, uint count)
        {
            while (count != 0)
            {
                count--;

                coordinate = coordinate.Neighbour(ref direction);
            }

            return coordinate;
        }