Use ir sensors to detect an object which would be the car. So 2 sensors and 4leds
Use ir sensors to detect an object which would be the car. So 2 sensors and 4leds
But if you wanted to put out a little more effort into it you could have car objects with member functions such as look_left(), look_right(), check_intersection(). Then you could set up the instantiations with their own theads. You could then use tick-time to model slow-pokes and hotheads. That would be interesting. . .
But if you wanted to put out a little more effort into it you could have car objects with member functions such as look_left(), look_right(), check_intersection(). Then you could set up the instantiations with their own theads. You could then use tick-time to model slow-pokes and hotheads. That would be interesting. . .