Skip to content

Commit 74cfdab

Browse files
authored
Update need for speed instructions for clarity (exercism#3102)
The tests check that if battery level is 99/100 but battery drain would be 100, that the car is technically 'drained'. This PR updates the instructions to reflect this to avoid ambiguity.
1 parent ed16ba4 commit 74cfdab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

exercises/concept/need-for-speed/.docs/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ car.distanceDriven();
4545

4646
## 4. Check for a drained battery
4747

48-
Update the `NeedForSpeed.drive()` method to drain the battery based on the car's battery drain. Also, implement the `NeedForSpeed.batteryDrained()` method that indicates if the battery is drained:
48+
Update the `NeedForSpeed.drive()` method to drain the battery based on the car's battery drain. Also, implement the `NeedForSpeed.batteryDrained()` method that indicates if the battery is too drained to drive:
4949

5050
```java
5151
int speed = 5;

0 commit comments

Comments
 (0)