Paterson's Worms - Rules

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:

    Retaliation is related to nature and instinct, not to law. Law, by definition, cannot obey the same rules as nature.
    Albert Camus (1913–1960)

    ... a large portion of success is derived from flexibility. It is all very well to have principles, rules of behavior concerning right and wrong. But it is quite as essential to know when to forget as when to use them.
    Alice Foote MacDougall (1867–1945)

    Alas! when Virtue sits high aloft on a frigate’s poop, when Virtue is crowned in the cabin of a Commodore, when Virtue rules by compulsion, and domineers over Vice as a slave, then Virtue, though her mandates be outwardly observed, bears little interior sway.
    Herman Melville (1819–1891)