Rules
Squares on a plane are colored variously either black or white. We arbitrarily identify one square as the "ant". The ant can travel in any of the four cardinal directions at each step it takes. The ant moves according to the rules below:
- At a white square, turn 90° right, flip the color of the square, move forward one unit
- At a black square, turn 90° left, flip the color of the square, move forward one unit
Langton's ant can also be described as a cellular automaton, where the grid is colored black or white, the "ant" square has one of eight different colors assigned to encode the combination of black/white state and the current direction of motion of the ant.
Read more about this topic: Langton's Ant
Famous quotes containing the word rules:
“Can rules or tutors educate
The semigod whom we await?
He must be musical,
Tremulous, impressional,
Alive to gentle influence
Of landscape and of sky
And tender to the spirit-touch
Of mans or maidens eye.”
—Ralph Waldo Emerson (18031882)
“Under the rules of a society that cannot distinguish between profit and profiteering, between money defined as necessity and money defined as luxury, murder is occasionally obligatory and always permissible.”
—Lewis H. Lapham (b. 1935)
“It would be naive to think that peace and justice can be achieved easily. No set of rules or study of history will automatically resolve the problems.... However, with faith and perseverance,... complex problems in the past have been resolved in our search for justice and peace. They can be resolved in the future, provided, of course, that we can think of five new ways to measure the height of a tall building by using a barometer.”
—Jimmy Carter (James Earl Carter, Jr.)