There are lots of applets on the web which simulate Langton's ant on the square grid, usually allowing the user to change the states in a few cells before letting the ant run. Our applet does a lot more than this: you can switch between the different grids (including general graphs, which you are allowed to edit), you can run the ant forward and backward, you can highlight its trace, mark certain cells, and load some interesting initial configurations. File I/O is not included in this version, due to the security restrictions imposed to applets. |
Contents:
Warning for Linux users: We have seen the applet hanging up in Linux... And not only did Netscape hang up, but the whole terminal session. Any help from Linux-experienced Java programmers is welcome (for the source code, see below).
Please take note that there are many elements in the control panel; a low-resolution screen configuration, or a web browser with too many toolbars, may hide some buttons from view. This is why we recommend opening the applet in a maximized window.
The code is not copyrighted; anyway, I think it would be fair at least to mention the name of the programmer (Andrés Moreira) if you use the applet somewhere.
If you want to modify it, I apologize in advance for the absence of comments, the bad Java style, and the spanglish in the names of variable and methods. If you do any valuable extension to the program, please let me know ( mailto:anmoreir@dim.uchile.cl), and check the copyright information.