A little traffic simulation, made as a study about the basics of OOP.
There are three important rules:
- brake if there is a slow car ahead,
- wait at the crossing, if there is a car coming from the right side.
- don´t turn left, if there is a car on the opposite lane.
Thanks to the friendly people in the forum, who helped me with the ArrayList stuff.
17.1.: update with with an improved display-method.