Documentation
FreeMulti-agent simulation library for Python
About Documentation
Westworld is a multi-agent simulation library for Python, designed to simulate and optimize systems with multiple interacting agents. Inspired by Unity and Unity ML-Agents, it provides pre-coded spatial environments (grid and non-grid), communication between agents, and support for logistics, retail, and epidemiology simulations. The library includes features such as easy environment creation, object types (agents, obstacles, collectibles, triggers), subclassing for custom objects, random spawning, rigid body physics, basic agent behaviors (pathfinding, wandering, random walk, fleeing, vision range), automatic maze generation, image-to-obstacle layer conversion, sample simulations, and simulation visualization with replay export (GIF or video). It is highly experimental and under active development.
Key Features
Pros & Cons
- Open source and free to use
- Python-based, easy to integrate with existing ML and data science workflows
- Provides pre-coded spatial environments and agent behaviors out of the box
- Includes visualization and export for simulation replay
- Roadmap includes reinforcement learning integration with Stable Baselines
- Modular design with subclassing for extensibility
- Highly experimental, alpha release with incomplete documentation and untested features
- Requires familiarity with Python and basic simulation concepts
- Limited to 2D grid environments currently; no 3D support
- Reinforcement learning integration is still on the roadmap, not yet implemented
- Community and support are minimal due to early development stage