More information about this project can be found on this github page.
This project only requires numpy
and pygame
packages to run.
To install the required packages, run the following commands.
pip install numpy
pip install pygame
Run with
python game.py
to start the game normally in a playable mode with the default settings. Various command line arguments may be passed on to change the settings. For example,
python game.py -z3 -n200 neat
will start the game with 3x display zoom and 200 cars per generation for
the AI to train on. For more help, run the program with -h
as its argument.
Use ↑, ↓, ←, and → keys to control the car. Number keys 0, ..., 9 may be used to change the game speed. This is mainly used to speed up the training process for the AI. Use i to toggle the information overlay and d to show the debug screen.
All assets, except the font, are made by me, and please feel free to use them in any way you see fit. If you like the font and would like to use it, please consider making a small donation to the original author by following the link below.
- VSCode: Code editor used for programming.
- Aseprite: Drawing tool used for pixel art.
- monogram: Pretty looking monospaced pixel font.
This project is released under the MIT License. See the LICENSE file for details.