Skip to content

Vectorized Boids simulation in Pygame and Pytorch

License

MIT, GPL-3.0 licenses found

Licenses found

MIT
LICENSE_ENSEMBLE.md
GPL-3.0
LICENSE_FRAMEWORK.md
Notifications You must be signed in to change notification settings

laurahsisson/vector-boids

 
 

Repository files navigation

PyNBoids

A Python Boids Simulation

This is a Boids simulation, written in Python3 using Pygame2, vectorized with PyTorch.

To use: Run via python. (Example: python3 vectorboids.py)

Esc key to quit.

Simulation Settings

There are variety of customizable settings at the top of the vectorboids.py file.

These are largely split into UI settings (screen size, frames/second) and simulation parameters (number of agents, neighborhood radius).

Credits and Licensing

The framework code (game engine and UI) was written by Nikolaus Stromberg and licensed under the GNU General Public License (see LICENSE_FRAMEWORK.md)

The ensemble code (vectorization of flocking) was written by Laura Sisson and licensed under the MIT License (see LICENSE_ENSEMBLE.md)

  • Copyright (c) 2023 Laura Sisson

About

Vectorized Boids simulation in Pygame and Pytorch

Resources

License

MIT, GPL-3.0 licenses found

Licenses found

MIT
LICENSE_ENSEMBLE.md
GPL-3.0
LICENSE_FRAMEWORK.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%