Closed seriar closed 6 months ago
Hello. Thanks for opening an issue on Exercism 🙂
At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.
This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!
If you're interested in learning more about this auto-responder, please read this blog post.
There are two slightly ambiguous parts about the
CanFinish
subtask:Calling
CanFinish
withcar.distance > 0
Problem
There is a line in instructions implying that the distance traveled by car before the function call should not be use for the check:
But the tests do not validate it so both implementations counting and not counting it towards the track distance
Suggestion
can finish the race
tocan finish the race from start to finish
to make it a bit clearer, andcar.distance
is not counted towards the target distanceTravelling with
battery < batteryDrain
Problem
The instructions for
Drive
function indicate that it should not be possible to travel with a battery level lower the battery drain rate. But the tests forCanFinish
do not validate it. So one can write a solution that would allow it, and still pass all the tests.Suggestion
Car cannot travel at all if the battery level is less than batteryDrain
(or the opposite but that is a bit more tricky) and