AI learns to drive a car using the NeuroEvolution algorithm.
git clone --recurse-submodules https://github.com/Coestaris/DeepCars
cd DeepCars
sudo apt install mesa-utils libx11-dev libxi-dev imagemagick-6.q16 libfreetype6-dev libgtk-3-dev
sudo apt install make cmake # If needed
Also you need to install Chipmunk2D by following it's instalation instructions like:
git clone https://github.com/slembcke/Chipmunk2D
cd Chipmunk2D
cmake CMakeLists.txt
make
sudo make install
And also you need to install STB:
git clone https://github.com/nothings/stb.git
sudo cp stb/stb_image.h /usr/local/include/
To build project simply use:
cmake CMakeLists.txt
make all
You need to pack resources before running the application:
sudo apt install python3 # If needed
cd packer
python3 -m pip install -r requirements.txt # Setup python requirements
python3 packer.py --out_file=<path to folder with project binary>/resources.bin --in_dir=../resources/
The resource file must be in the same folder as the application executable
The project also bundles third party software under its own licenses:
- mesa-utils - MIT License
- libX11 - X11 License
- OIL - MIT License
- fontbm - MIT License
- Chipmunk2D - MIT License
- freetype - Free Type License (FTL)
- osdialog - CC0 License
- stb - MIT License