Education and Outreach Blog

« Back

HPC UNIVERSITY BI-WEEKLY CHALLENGE - Langton's Ant in C and X11

RELEASE DATE:
November 2, 2015

SUMMARY:
You challenge is to write a version of a popular cellular automaton using C and X11.

QUESTION:
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/).

SOLUTION:
Will be posted November 9, 2015.

LINK:
http://hpcuniversity.org/students/weeklyChallenge/111/
 

Comments
Trackback URL:

No comments yet. Be the first.