Skip to content

Repository files navigation

Ants Simulation (ants-js)

A JavaScript-based simulation of ant colony behavior driven by scent trails.

Features

  • Scent Trails: Ants emit various scents and follow the traces of others.
  • Environmental Objects: Includes sugar sources, an ant nest and various obstacles.
  • Evolution: Ants evolve over time, optimizing their probe length for more efficient sugar collection.

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd ants-js
  2. Install dependencies:

    npm install

Development

Start the development server with hot-reload:

npm run dev

Building for Production

Build the project for production (output in dist/):

npm run build

Preview the production build:

npm run serve

Testing

Run the unit tests:

npm run test

About

Simulation of an ant colony

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages