Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcellofabrizio/hunter-prey-simulation
https://github.com/marcellofabrizio/hunter-prey-simulation
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/marcellofabrizio/hunter-prey-simulation
- Owner: Marcellofabrizio
- Created: 2022-11-11T02:57:10.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-01T23:29:31.000Z (about 2 years ago)
- Last Synced: 2024-04-24T03:26:56.369Z (9 months ago)
- Language: Python
- Size: 401 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hunter-Prey Ecosystem
This project is an implementation of the Hunter-Prey Multi-Agent problem for the Computational Inteligence class.
The project uses Pygame and Numpy as libraries. To install both of them, run:
```pip install numpy pygame```
There are a few parameters that the model uses.
- **H** is the number of hunters in the environment. Default is 4.
- **P** is the number os preys. Default is 1.
- **M** is the number os movements before a new direction is chosen, when wandering. Default is 10.To run the model, run:
```python3 main.py```
To run a model with, for e.g, 13 hunters, 3 preys and a random direction, you must run:
```python3 main.py -H 10 -P 3 -M 1```
### Demo
![Demo gif](assets/demo.gif)