-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
| private boolean parkStartingAtSpot(int spotNumber, Vehicle vehicle) { |
If one or more spots fail, it seems to still decrease the number of available spots, and also doesn't free the spots that succeeded. This should be an "all-or-nothing" kind of transaction. Potentially, if a level fails to park the vehicle, the following level should try, which then starts by clearing the spots on the given vehicle. To make sure we are clearing the correct number of vehicles vs. decreasing the correct number of available spots, a workaround would be to decrease the available spots by the actual number of spots that were filled rather than the vehicle's number of spots needed.
Metadata
Metadata
Assignees
Labels
No labels