[Icfp04-discuss] Ant entries

Evan Simpson evan at 4-am.com
Mon Jun 7 14:31:53 EDT 2004


I used the Python compiler package to make a mini-language that looks 
like this:

"depart"
if move:
     if sense.home.here:
        go("depart")
else:
     if flip[2]:
        turn.left
     else:
        turn.right
     go("depart")

# Off the hill, now
"trailblaze"
mark0
"tb marked 0"
if sense.marker0.ahead:
     go("deviate")
if flip[10]:
     go("wander")
if move:
     mark0
     mark1
     "tb marked 1"
     if sense.marker0.ahead:
         go("deviate")
     if move:
         mark0
         mark2
         "tb marked 2"
         if move:
             go("trailblaze")


See http://4-am.com/icfp2004 for more.

Cheers,

Evan @ 4-am


More information about the Icfp04-discuss mailing list