Coder Social home page Coder Social logo

debryu / autonomous-software-agents Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.39 MB

Using BDI model to run multiple agents that have to compete against other opponents in a simulated world. The agents uses Ant Colony Optimization for pathfinding.

JavaScript 99.58% PDDL 0.42%
agent agent-based-modeling bdi challenge courseproject game javascript server aco biologically-inspired-algorithm

autonomous-software-agents's Introduction

The authors are Nicola Debole and Mateo Rodriguez. This work is the project for the Autonomous Software Agents course at the University of Trento.

Usage

First clone the repository

git clone https://github.com/debryu/Autonomous-Software-Agents.git

Then move inside the folder and run

npm install

find the file mainframe.js located in lib/deliverooClient/agent_folder/mainframe.js and in the same path from the terminal run

node mainframe.js "CHOOSE A NAME FOR THE AGENT" "TOKEN"

Example you can run separately this two commands:

node mainframe.js AgentSmith_0 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjhkZTYzMmJiNjYwIiwibmFtZSI6IkFnZW50U21pdGhfMCIsImlhdCI6MTY4NTk3NzExMn0.S9_nuZTVO5k6yQXyMNz4ia8YuJODnJJ8RqF36Mo56XE
node mainframe.js AgentSmith_2 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRlNjMyYmI2NjA0IiwibmFtZSI6IkFnZW50U21pdGhfMiIsImlhdCI6MTY4NTk3NzE3MX0.obnPhigqA-PDznKikl33TIuHdDYg4kvmrkQUIXH12KY

The token can be retrieved by connecting to https://deliveroojs.onrender.com/ and filling with the name of the agent when asked.

You need to run two different agents otherwise the first one will just wait endlessly for the other.

Flowchart

A flowchart of a simplified version of our code to better understand it at first glance. Basic flowchart

Features

  • Ant Colony Optimization (ACO)
  • PDDL
  • Beliefs-Desire-Intention (BDI)

autonomous-software-agents's People

Contributors

debryu avatar mateo-drr 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.