This is a simple agent-based simulation built with Python and Mesa.
Agents move randomly on a 10x10 grid. Each agent has a unique color and only moves to empty neighboring cells.
- Python 3.7 or higher
- Mesa 1.2.1
pip install -r requirements.txtpython server.pyThen open your browser and go to:
http://127.0.0.1:8521
agent.py: Defines how the agents move and pick colorsmodel.py: Creates the grid and the agentsserver.py: Starts the web-based visualization