This project simulates the genetic evolution of entities over time. The simulation includes features such as reproduction, random mutations, aging, and death. The entities are displayed on a graphical interface using Pygame.
EntityDef.py: Defines theentityclass, which represents an individual entity in the simulation.Main.py: Contains the main logic for the simulation, including initialization, daily updates, reproduction, and graphical display.
- Python 3.x
- Pygame
-
Clone the repository:
git clone https://github.com/yourusername/genetic-evolution.git cd genetic-evolution -
Install the required packages:
pip install pygame
Run the simulation:
python Main.py