A smol simulator framework built on top of PyGame.
- Automatic agent wandering behaviour
- Fully deterministic simulations with PRNG seeds
- Install Violet with a simple
pip install
😎 - Matrix-powered multi-threaded configuration testing
- Polars-powered simulation analytics
- Replay-able simulations with a ✨ time machine ✨
- Type-safe configuration system (with TOML support)
Want to get started right away? Check out the Violet Starter Kit!
Install the latest version of Violet with:
pip3 install -U violet-simulator
Or with PDM:
pdm add violet-simulator
from vi import Agent, Simulation
(
# Step 1: Create a new simulation.
Simulation()
# Step 2: Add 100 agents to the simulation.
.batch_spawn_agents(100, Agent, images=["examples/images/white.png"])
# Step 3: Profit! 🎉
.run()
)
For more information you can check the documentation, examples and the User Guide.