Informatik, Modellbau und Privates von Georg
[ start | index | login ]
Home > ICFP 2004 > Simulator

Simulator

Created by georg. Last edited by georg, 4 years and 125 days ago. Viewed 408 times. #1
[edit] [rdf]
labels
attachments
The Simulator is written in Haskell. It reads in an .prog file which is basicly the Haskell output of the internal ant language representation. Is is generated be the phec compiler.

We didn't bother writing a parser for the ant language itself. In the later main program we passed the compiled program interal so there was no need.

The simulator has serveral output formats. First of all it has a colorised xterm compatible console output. Additionally you can output a dump of the simulation in the format the organisers provided it. At Saturday evening I verified the Simulator using the diff command. There was not even a space difference :-). Last but not least there is the output for the frontend, which consists of all cell where an ant is and all ants. This gives quite a large amount of data. (150MB for 10000 steps)

no comments | post comment

Content

Help
For hints about formatting text see snipsnap-help.

Logged in Users: (0)
… and 8 Guests.

Recently Changed
snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt