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:
“Good discipline is more than just punishing or laying down the law. It is liking children and letting them see that they are liked. It is caring enough about them to provide good, clear rules for their protection.”
—Jeannette W. Galambos (20th century)
“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)
“Now for civil service reform. Legislation must be prepared and executive rules and maxims. We must limit and narrow the area of patronage. We must diminish the evils of office-seeking. We must stop interference of federal officers with elections. We must be relieved of congressional dictation as to appointments.”
—Rutherford Birchard Hayes (18221893)