Monday November 2, 2015
You challenge is to write a version of a popular cellular automaton using C and X11.
Langton's Ant is a popular cellular automaton. The Wikipedia page for it provides a decent introduction: https://en.wikipedia.org/wiki/Langton's_ant

Your challenge is to write a version that uses C and X11 to model the ant through 200 iterations, assuming the ant starts in a white cell in the center of the grid, facing left (immediately turning right and changing the cell beneath it to black).

A version of the automaton in HTML/CSS/JavaScript is provided in the solution to the "Langton's Ant in JavaScript" challenge problem (http://hpcuniversity.org/students/weeklyChallenge/110/). Your task is to write a version in C and X11. An example program that uses C and X11 is provided in the solution to the "Diffusion, Limited Aggregation in C and X11" challenge problem (http://hpcuniversity.org/students/weeklyChallenge/106/).
Show solution
Challenge Resources:
©1994-2020   |   Shodor   |   Privacy Policy   |   NSDL   |   XSEDE   |   Blue Waters   |   ACM SIGHPC   |   feedback  |   facebook   |   twitter   |   rss   |   youtube   |   XSEDE Code of Conduct   |   Not Logged In. Login