Skip to content
/ racing Public

A racing game with semi realistic car handling and AI learning

Notifications You must be signed in to change notification settings

drabart/racing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Racing AI game

A racing game with semi realistc car handling. Project also includes a deep learning AI using a NEAT algorithm. AI learns pretty well and after a couple of generations can complete a few laps around the track.

Manual racing nt AI training racing

How to run

Just install the necessary libraries:

  • tkinter
  • python-neat

And run the main.py

Manual controls

You can steer the car using

  • W for accelation
  • A and D for changing steering angle
  • S for breaking
  • R for changing gear to reverse
  • Q for resetting the race

The car maintains the inertia and might need a while to get used to

Training

You can start AI training by clicking the Train button. The application will unfortunatelly freeze the GUI (I didn't add multithreading) but every 5 generations (by default) will render all of the neural models at once

You can controll most of the NEAT algorithm variables using the config-feedforward.txt (refer to python-neat docs for informations on how to modify it) The code running the training is in the main.py file

About

A racing game with semi realistic car handling and AI learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages