The following graphic is a 3D "random walk" of $\pi$ digits by converting them in base $6$ representing $6$ directions :
Manipulate[d = N[Pi, n];
walk = First@RealDigits[d, 6];
coord = FoldList[Plus, {0, 0, 0}, {{0, 1, 0}, {1, 0, 0}, {0, -1, 0}, {-1, 0,0}, {0, 0, 1},
{0, 0, -1}}[[# + 1]] & /@ walk];
Graphics3D[{Line[coord], PointSize[Large], Green, Point[First@coord], Red,
Point[Last@coord]}, ImageSize -> 400], {n, 1, 100000, 1}]
There is a $257019$ lines (First@RealDigits[N[Pi, 200000], 6] // Length)
and I want to colorize each direction by six color
colors = {Red, Blue, Green, Cyan, Yellow, Purple}




digitsare not defined andwalkRulesnot used. I guess you have a line missing. – Johu Oct 16 '16 at 12:56