https://github.com/zrunner/evolution-game
A Pygame project about AI, sociology and Darwin
https://github.com/zrunner/evolution-game
darwin evolutionary-algorithm hacktoberfest pygame simulation
Last synced: 2 days ago
JSON representation
A Pygame project about AI, sociology and Darwin
- Host: GitHub
- URL: https://github.com/zrunner/evolution-game
- Owner: ZRunner
- License: agpl-3.0
- Created: 2022-08-31T03:03:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-12T00:02:43.000Z (5 months ago)
- Last Synced: 2025-04-02T08:11:15.800Z (3 months ago)
- Topics: darwin, evolutionary-algorithm, hacktoberfest, pygame, simulation
- Language: Python
- Homepage:
- Size: 325 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Great Evolution Game
A Pygame project about AI, sociology and Darwin> **Note**
>
> This readme is still a very draft, but here are some indications## What is it?
The first goal of this project is to watch creatures dying.
I mean, technically speaking, it's all squares having a very few brain cells to manage their health points, food points, their movements, and their interactions with other creatures.I plan to add more and more interactions (both input and output neurons) in the simulation, but for now they can already do some very neat things. They're just too dumb for my great expectations I guess.
## Requirements
* Python 3.10 or more
* Libraries listed in `requirements.txt`
* A computer## Shortcuts
* `G` open cool charts in the bottom left
* `left arrow` and `right arrow` navigate between charts
* `P` put the game on pause (or resume)
* `left click` on a creature to open its details panel## How to profile
First, install the required dependencies from `requirements-dev.txt`
Then use `py-spy top --subprocesses -- python3 start.py` if you want to get the live view of what functions are taking the most time,
or `py-spy record -o profile.svg --subprocesses -- python start.py` for a nice image at the end.