Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new termite example #251

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

Spartan-71
Copy link

Add New Termite Simulation Example

Summary

This PR introduces a new termite simulation example inspired by the classic termite wood chip gathering behavior. The simulation models termites moving randomly on a grid containing scattered wood chips, following simple rules to form piles over time.

Features

  • Termite Agents: Move randomly and interact with wood chips.
  • Wood Chip Gathering: Termites pick up and drop wood chips based on proximity.
  • Emergent Behavior: Simple rules lead to self-organized wood chip piles.
  • Visualization: Grid-based representation of termite movements and chip aggregation.

Implementation Details

  • Uses an OrthogonalMooreGrid for termite movement.
  • A PropertyLayer is utilized to track wood chip locations.
  • Termite agents follow rule-based interactions to create emergent structures.

Visualization

image

Remark

  • Currently, the piles formed by the termite agents are small in size. Moreover, the model struggles to combine these small piles into a larger one, even after 10k+ steps.
  • The termite agent's step function needs refinement. Would love to discuss the logic for the step function with the community.

Notes

  • This example is inspired by the NetLogo Termites model.
  • The simulation demonstrates a decentralized organization without a central controller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant