Originally posted by Ulf Dittmer:
What do you have so far, and where are you stuck making progress?
If you're interested in graphics, maybe you get some inspiration out of the MiceProblem.
Thanks for your advice but my case is (afraid to admit though) I don't even know where to start to get such output using only while loop and drawLine(x1,y1,x2,y2) function