Rules
The worm starts at some point of an infinite triangular grid. It starts moving along one of the six gridlines that meet at each point and, once it has travelled one unit of distance, it arrives at a new point. The worm then decides, based on the distribution of traversed and untraversed gridlines, what direction it will take. The directions are relative to the worm's point of view. If the worm has not encountered this exact distribution before it may leave along any untraversed gridline. From then on, if it encounters that distribution again, it must move in the same way. If there are no untraversed gridlines available, the worm dies and the simulation ends.
Read more about this topic: Paterson's Worms
Famous quotes containing the word rules:
“[O]ur rules can have authority over such natural rights only as we have submitted to them. The rights of conscience we never submitted, we could not submit. We are answerable for them to our God.”
—Thomas Jefferson (17431826)
“Syntax and vocabulary are overwhelming constraintsthe rules that run us. Language is using us to talkwe think were using the language, but language is doing the thinking, were its slavish agents.”
—Harry Mathews (b. 1930)
“Logic teaches rules for presentation, not thinking.”
—Mason Cooley (b. 1927)