Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kaylaipp/racetracereinforcementlearning

Various Reinforcement Learning Algorithms on Racetrack Simulations
https://github.com/kaylaipp/racetracereinforcementlearning

python q-learning reinforcement-learning reinforcement-learning-algorithms sarsa-algorithm

Last synced: about 23 hours ago
JSON representation

Various Reinforcement Learning Algorithms on Racetrack Simulations

Awesome Lists containing this project

README

        

# Various Reinforcement Learning Algorithms on Racetrack Simulations
We are presented with 3 different racetracks, an L track, an O track and an R track for our racecar to travel in. In this project, we build and test several factors to drive an optimal race. Firstly we build an environment for the car to travel in, this involves detecting if the car has crossed the finish line or not, or has crashed into a wall. To determine whether a car has crashed into a wall, we use Bresenham’s line algorithm to track our movement from point a to b and check if any of those points contains a wall. To determine the closest on-track point to a crash site, we start from the crash site and use breadth-first search via a queue to determine the closest on-track coordinate to the crash site.

## Run it
```
python QLearning.py
python SARSA.py
```