Racing made in c sdl2 but with neurel network AI
I have no idea how the maths in actuall neurel networks work
I just made educated guessed from a lot of youtube videos and wikipedia :P
Thusly, it doesn't evolve very well/quickly
Also keep close look of cpu/gpu temperatures, this program does not care about your device's health
You need sdl2, gcc (or clang) and make
# pacman -Sy sdl2 gcc make
# pacman -Sy opencl-nvidia ocl-icd opencl-headers
# pacman -Sy opencl-mesa ocl-icd opencl-headers
# pacman -Sy intel-compute-runtime ocl-icd opencl-headers
# apt update
# apt install libsdl2-dev build-essential
Fish out whichever package you need from
https://packages.ubuntu.com/search?keywords=nvidia+opencl&searchon=names
Then install with
# apt install <package name>
# apt install mesa-opencl-icd
# apt install intel-opencl-icd
Then you can simple make and run ./build/racer (or just make run
)
$ make
$ make run
Compiler has a c compiler needed to, well, compile
https://sourceforge.net/projects/mingw/
Make sure to also install make in the installer gui to make stuff easier (optional)
Compile by running in a terminal in the folder
$ make winblows
or if you dont have make
$ x86_64-w64-mingw32-gcc main.c controller.c -o build\\racer.exe -L%cd%\\SDL2\\x86_64-w64-mingw32\\lib -pthread -I%cd%\\SDL2\\x86_64-w64-mingw32\\include -Dmain=SDL_main -lmingw32 -lSDL2main -lSDL2 -lm -w -Wl,-subsystem,windows
you can then double click on racer.exe