Create a tutorial
The tutorial should have a introduction to quickly give an overview of what AntSim is. (About page?!) Then afterwards have the following topics:
- Finding food (walking towards it)
- Harvesting food (and bringing it home).
- Different genes (introducing "worker ants" which can harvest better) and using pheromones to guide them towards food
- How to deal with enemys (guide some "fighters" towards a spider.
Every step of the tutorial should build upon the predecessor. The user-code should then in the end have most of the important topics implemented and should be (kind of) ready for real simulations.
As the code is modular it is possible to create small interactive tutorials inside the jsdoc user documentation. To be able to pull this off though, the use of require js would seem a good approach ( yeah @akatzmann you were right 😀 ). Instead of including all script files in the index.html, each js file should then require files needed for and in its class.
The first two tutorials are nearly finished. The approach described above works great.
"Pheromones" and "attack" are left. After these two have working examples and tutorials, this issue may be closed.