Git Product home page Git Product logo

ant-colony's Introduction

ant-colony
./utility/ant-colony-logo
Total alerts Language grade: C/C++

Presentation 🐜

Subject

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.

Why Ant colony

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

ant.gif

Get ant colony

Required libs and tools:

  • cmake
  • pkg-config
  • sfml

If you are using nixos, you can just type nix-shell inside the directory to open a preconfigured shell

Compilation

cmake .
make

Man

Launching ant colony

./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

In simulation

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

Code conventions

Docstrings

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

License

You can contact me if you want to improve by optimizing or making new concrete focus.

Project license

thanks

Thanks to Louis for the idea of ​​the sugar pass between ants

ant-colony's People

Contributors

livarg avatar valoran-m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.