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:
“As no one can tell what was the Roman pronunciation, each nation makes the Latin conform, for the most part, to the rules of its own language; so that with us of the vowels only A has a peculiar sound.”
—Henry David Thoreau (18171862)
“But suppose, asks the student of the professor, we follow all your structural rules for writing, what about that something else that brings the book alive? What is the formula for that? The formula for that is not included in the curriculum.”
—Fannie Hurst (18891968)
“For 350 years we have been taught that reading maketh a full man, conference a ready man and writing an exact man. Footballs place is to add a patina of character, a deference to the rules and a respect for authority.”
—Walter Wellesley (Red)