[Icfp04-discuss] Ant entries

Justin Koser jmk63 at cornell.edu
Mon Jun 7 14:52:33 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eric Stansifer wrote:

| I really liked the parser program -- there is no way I could have
| written a 1523 state program without a parser!  By the way, the
| increase in number of lines between grid.ant.in and grid.ant.out is
| because the parser supports variables (and you thought finite state
| machines couldn't store data!), and the parser duplicates code once
| for each possible value of the variable.  Some of the code is
| duplicated 36 times (3 nested variables -- one for direction (6
| values), one for different markers (3 values), one for whether or not
| laying food trail (2 values):  6*3*2 = 36)!

Nice!  The same idea occurred to us, but we didn't have time to
implement it correctly.  The input for our entry is at

http://amoebaville.net/icfp2004/amoeba.in

and the tarball is here:

http://amoebaville.net/icfp2004/amoeba-ants.tar.gz

Cheers,
Justin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAxKthNjwQxC3zLzERAibtAJ0bNAGaGgWZmjHblvF0CNZcKt/6HgCeNEfC
jpoygYsZ2VXiN1GMky//VJs=
=EQTi
-----END PGP SIGNATURE-----


More information about the Icfp04-discuss mailing list