AK2001 / simulation_of_bees_collecting_nectar

This repository contains a project created using the Processing programming language. The program is an illustration of bees harvesting nectar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simulation of bees collecting nectar from flowers

This project is part of a university course, called Software Development in practice, where using the Processing programming language (V3), the goal was to create a simulation of an ecosystem containing a bee hive, bees, flower patches.

More specifically, the simulation includes 3 main entities. Collector Bees are bees whose only task is to collect the nectar from spotted flower patches. After collecting the nectar, they return to the bee hive, where they await until a new flower patch is found. Seeker Bees are bees that constantly fly around inside the ecosystem and their only task is to "spot" a flower patch and then return to the bee hive to "inform" the others. Flower patch is a patch of random number of flowers (depicted as circles) that bees can seek and harvest. Harvested flowers are indicated with a red tone. Harvested flowers reproducing their nectar after a couple of seconds.


Demonstration:

On the left we see the bee hive and the collector bees (smaller bees) that fly around it waiting for a spot
On the right we see a flower patch (unharvested) and a seeker bee (bigger in size) landing on it as it "spots" it.

image

Collector bees flying towards a spotted flower patch for harvesting.

image

Flower patch flowers reproducing their nectar.

image


How to run?

  • After opening the project locally, click on the run button to start the simulation in Processing
  • Then, Enter the number of seeker bees and collector bees

After running the simulation, you are able to alter various parameters in real-time.

For example you may change

  • The number of seeker and collector bees (add and remove)
  • You may add a new flower patch
  • You may remove a flower patch only if it has been harvested

About

This repository contains a project created using the Processing programming language. The program is an illustration of bees harvesting nectar


Languages

Language:Processing 100.0%