GithubHelp home page GithubHelp logo

antcolonies's Introduction

AntColonies

Objects Ant (Ant), Cell (Point in an ant field) and CellGrid (Cartesian ant field) are tested in the AntColonies.java program which simulates, for a specific state, the behavior of ants in searching and transporting food to their nests.

Details

Ants live and move in a Cartesian field N x N for a given N. Each nest is at a specific point, and each ant belongs to one of the nests. In addition, in certain places (where there are no nests) there are quantities of food that are measured in number of seeds. Each ant acts independently of the other ants whether they belong to its nest or another nest, and there is no direct communication between them. All ants move individually, step by step (at each point in time). The common goal of all ants is to search for food, so that their nests end up having as many seeds as possible. Each nest can hold an unlimited number of seeds but an ant can carry a seed at any time. In addition, the ants memory is very limited. In particular, it knows only the location of its nest, and it also remembers the immediately preceding location from which it was led to the present location, which it also knows. Finally, it can only move horizontally or vertically from where it is located, so each movement is a step up, down, right or left.

antcolonies's People

Watchers

 avatar Marcos Charalambous 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.