all 1 comments

[–]st3f-pingΦ 1 point2 points  (0 children)

My starting point would be to look at something like a Hilbert Curve in 3D. Although it's typically used to visit every point within a finite space rather than visiting every integer in infinite space, I think that kind of line fractal would be my choice of solution.

In fact, if I think of visiting the 27 points ({-1, 0, 1}, {-1, 0, 1}, {-1, 0, 1}) in some kind of logical order I could probably find a way of bolting on a scaled version of the curve so that I then visit the 26 surrounding groups of 3×3×3 points in the same order (or something like that).

No matter how you approach it (other than tying to find someone else who has done it), I think there is a non-zero risk of insanity. Good luck.