Decision trees and driving
1 Abril 2022, 15:00 • Luis Manuel Ferreira Fernandes Moniz
Objective: Use Decision Trees to control the car behaviour on the track.
- Run the Decision Trees examples (DecisionTrees.zip)
- Remake the car example and incorporate the DT in the decision process of your car.
Note:
- Replace your AbstractCar class with this.
- Add draw_sensors(win) to your car draw(self,win) function.
- Use the information in the list self.sensors to check collisions (the order is [front,left,right,back] with the track colour)