board to an infinite grid, with all squares coloured white in his honour.
After an extremely intense chess game, the triumphant White King decides to expand his kingdom from anAdmiring his pristine terra but desiring more colour and flair to his new land, he goes for a walk, initially facing north, following these instructions:
At a white square, turn right, colour the square to red, move forward one square.
At a red square, turn left, colour the square to white, move forward one square.
After moves, the king begins moving in a fixed, orderly pattern in the southeast direction. Find , rounding your answer to the nearest thousand.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Langton's Ant stops after approximately 10000 moves. Unfortunately, I am no coder so I don't have a CS solution.