[CMPINF 0401 - In-class Exercise]
Goal: Implement a simple command-line-based car race game where two drivers compete
- A driver can sign up for a car race
signUp()means drivers register their cars- A driver has one car
- A car has at least one instance variable (a
model) Optional: A car also has a speed, that should increase when it drives and when the car accelerates. To add some fun, acceleration is determined by a random number, while a maximum speed is maintained.
- Work with multiple classes & objects
- Construct objects that contain references to other objects
- Understand null checks
- Take a look at the diagram from L10
- Adapt the template to fit the new requirements (map the model to code)
Your task is to complete the code.