Simulate the learning to survive of basic organisms
- tensorflow
- numpy
- pygame
- termcolor
- Currently requires a NVIDIA GPU for tensorflow with CuDA and CuDNN installed and tensorflow GPU version installed
- Require a resolution of 1280x720 pixels since it is hardcoded as the resolution for PyGame screen.
python main.py
In case of lag or stuttering, reduce the frame rate in of the following line:
#main.py
while 1:
...
clock.tick(<frame_rate>)
or increase the probability of a random sample in the following line
def animator(bots):
...
if random.random() > <probability_of_random_sample>:
- Collectables that increase health
- Way to distinguish sprites
- Save frames as images/video
- Predators that will go after bots
- Avoid predators