( ! ) Notice: session_start() [function.session-start]: Server 127.0.0.1 (tcp 21201) failed with: Failed reading line from stream (0) in /var/www/html/common-trunk/SWAT/SWAT.php5 on line 108
Call Stack
#TimeMemoryFunctionLocation
10.0015171200{main}( )../viewChallenge.php5:0
20.0025285648include_once( '/var/www/html/hpcu/config/standardIncludes.php5' )../viewChallenge.php5:20
30.107211551992SWAT->startSession( )../standardIncludes.php5:138
40.107211552016session_start ( )../SWAT.php5:108
HPC University: Langton's Ant in C and X11
 
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-2025   |   Shodor   |   Privacy Policy   |   NSDL   |   XSEDE   |   Blue Waters   |   ACM SIGHPC   |   feedback  |   facebook   |   twitter   |   rss   |   youtube   |   XSEDE Code of Conduct   |   Not Logged In. Login