For this project we had to make a simulation of an ant with several colonies. Here is the subject for those who speak French subject. We have several additions and took some liberty on the subject.
We did this project with Livarg for the University of Paris Saclay in modular planning for the end of the first year of the bachelor's degree in math and computer science
- cmake
- pkg-config
- sfml
If you are using nixos, you can just type
nix-shell
inside the directory to open a preconfigured shell
cmake .
make
./ant_colony [OPTION] ...
commande | dedescriptions |
---|---|
-h / --help | show command |
-t / --textures | active textures |
-m / --man | place colony manualy |
-c / --colony number | number of colony |
-s / --sugar number | number of sugar |
-l / --largeness number | cell dimension |
-d / --dimension number number | grid dimension |
right click on an entity displays its data
left click on an empty case put a sugar
key | dedescriptions |
---|---|
h | show command in terminal |
g | display or delete borders |
r | reset |
p | pause |
q | quit |
b | barrier mode click for add barrier |
n | nest phero update |
UP | speed up |
DOWN | speed down |
ESCAPE | show pause menu |
We followed javadocs guidelines with an additional decorator:
@confidence 0-4
- 0: it doesn't work
- 1: it "works" with known bugs
- 2: it works but can't be tested
- 3: it works and has been tested
- 4: it works, it has been tested and it is so simple that there is no doubt about it
You can contact me if you want to improve by optimizing or making new concrete focus.
Thanks to Louis for the idea of the sugar pass between ants