Git Product home page Git Product logo

tp2-sma's Introduction

TP2 - Multi-Agents Systems

Collective sorting simulation


Table of Contents


Description

This Simulation implements a Collective Sorting Algorithm mimicking an ant colony.

  • Each entity can perceive his local surroundings
  • 3 types of objects can exist on the world
    • 2 regular objects that need to be sorted apart from each other
    • a 3rd type that need 2 entity to work together to be moved
  • On each update, an entity has 5 possible actions
    • Move to a random direction
    • Pick up an object on the ground
    • Put an object on the ground
    • Ask for help if it carries an Object of the 3rd type (simulated by putting markers on the ground that can spread around the entity)
    • Enslave itself to a neighboring entity in order to help it move an object of the 3rd type
    • Or give up on trying to move an object of the 3rd type
  • Actions that concerns objects have a probability of occurrence calculated using fixed parameters

Controls and GUIs

The main window features a 3D scene showing the simulation.

  • Hold Right-Click and move the mouse to rotate the camera
  • ZQSD are used to move the camera on the XZ plane
  • Space/Shift are used to move up and down on the Y axis

A 2D Map is also available in a separate window that show 3 2D representation of the simulation

  • A Map of all objects currently on the ground
  • A Map of all agent colored according to their carried object
  • A Map of the markers on the ground

A Settings window enable the modification of the simulation at runtime (profiles can be saved and loaded at any time)

  • Change the amount of objects and entities
  • Change the parameters of the simulation (memory size, max displacement, markers behaviour ...)
  • Change the world size (the map is squared)
  • Change the color used for each type of object
  • Change the camera sensitivity
  • Change the update rate and FPS
  • Enable/Disable VSync
  • Enable/Disable Agent animations
  • Show/Hide markers on the 3D view

How to Use

Launch

To launch the Simulation set the Main Class to Main.java


Screenshots


Resources


Libraries


License

This project is licensed under the MIT license

tp2-sma's People

Contributors

alban098 avatar

Stargazers

 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.