https://github.com/redinfinitypro/evolutionsimulation
The code imports random and ursina, creating a class called Bacteria(Button) with genetic code letters and DNA variable, and includes functions like update(), kill_bot, make_new_bot, and birth rate slider.
https://github.com/redinfinitypro/evolutionsimulation
python random ursina
Last synced: 28 days ago
JSON representation
The code imports random and ursina, creating a class called Bacteria(Button) with genetic code letters and DNA variable, and includes functions like update(), kill_bot, make_new_bot, and birth rate slider.
- Host: GitHub
- URL: https://github.com/redinfinitypro/evolutionsimulation
- Owner: RedInfinityPro
- Created: 2022-05-15T16:44:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-14T16:37:29.000Z (about 2 months ago)
- Last Synced: 2025-04-04T22:35:26.383Z (29 days ago)
- Topics: python, random, ursina
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EvolutionSimulation
## Table Of Contents
- Description
- Features
- Contributing
- Project Structure## 📖 Description
This code imports random and ursina from ursina import *. It creates a class called Bacteria(Button) with genetic code letters and a DNA variable. The class is initialized with a global variable and a DNA variable. The code then updates the bacteria variable based on the randomness of the genes. The bacteria variable is then added to the bacteria list.## 🚀 Features
The description includes features such as importing random modules, inheriting a bacteria class from the button class, initializing global variables, implementing gene randomization, and adding new bacteria objects to a bacteria list. It suggests the use of `ursina` in a 3D or interactive environment for simulation or visual representation of genetic processes. Assistance is available for refining or troubleshooting the code.## 🤝 Contributing
1. Fork the Repository
- Click on the Fork button at the top right corner of the repository page to create your own fork of the repository.
2. Create a Pull Request
- Navigate to the original repository and create a pull request to merge your changes into the main branch.## 📂 Project Structure
- 📄 Bacteria-simulation.py
- 📄 simulation_1.py