Decision trees and driving

1 Abril 2022, 16:30 Luis Manuel Ferreira Fernandes Moniz

Objective: Use Decision Trees to control the car behaviour on the track.

  1. Run the Decision Trees examples (DecisionTrees.zip)
  2. 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)