Autonomous Slot Car Racing Cup

In context of teaching physical computing, interpretation of sensor data, programming embedded system, and fun in computing we are launching the autonomous slot car racing cup (primarily) for students. Rules are simple:

Write a program that runs un the slot car's processor and makes the car be the fastest to complete a couple of rounds on an unknown track!

One a technical level, some extra rules are currently being developed to handle situations such as how to handle situations such as skidding off the road.