Skip to content
aalbataPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Swarm Lab

Swarm Lab is a single-file, browser-based genetic algorithm activity for teaching evolutionary optimization through an interactive rocket-swarm challenge.

Students do not manually draw a path. Instead, they tune the rules of evolution and watch a swarm improve across generations as it tries to reach a beacon while avoiding obstacles.

What it teaches

  • Population size and search diversity
  • Mutation rate and exploration
  • Fuel/lifespan as a search budget
  • Generation count as an optimization budget
  • Elitism and preservation of strong solutions
  • Fair comparison through fixed maps and seeds

Running the activity

Open the file below in any modern browser:

src/swarm-lab.html

No installation, server, login, package manager, or internet connection is required.

Suggested classroom use

  1. Instructor selects one map and one seed.
  2. All teams use the same map and seed.
  3. Each team gets a fixed number of attempts, such as three.
  4. Teams record their best score.
  5. The class discusses which parameter choices helped or hurt convergence.

Repository contents

swarm-lab/
  README.md
  LICENSE
  CITATION.cff
  CODE_AVAILABILITY.md
  CHANGELOG.md
  .gitignore
  src/
    swarm-lab.html
  docs/
    instructor-guide.md
    student-handout.md
  supplementary/
    README.md

Code availability

The prototype is implemented as a single self-contained HTML file. For manuscript review, the HTML file can also be submitted as supplementary material. Upon publication, a tagged GitHub release may be archived through Zenodo or an institutional repository.

License

This project is released under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages