Fix: Change to False by copydataai · Pull Request #2235 · exercism/java
Hey!
Why: because if the prisoner is sleeping he cannot be rescued
This is only valid for the second way the prisoner can be rescued. The first way (archer sleeping) doesn't depend on whether the prisoner is awake or not:
If Annalyn has her pet dog with her she can rescue the prisoner if the archer is asleep. The knight is scared of the dog and the archer will not have time to get ready before Annalyn and the prisoner can escape.
In both the test cases you changed this happens (archer sleeping and dog present), so it falls under this first scenario.
However, I do see how the instructions can be contradicting. The first scenario claims that if the archer is sleeping:
the archer will not have time to get readybut the second scenario claims that
But the second scenario claims that the archer can be awakened and now that's a problem:
if the prisoner is sleeping they can't be rescued: the prisoner would be startled by Annalyn's sudden appearance and wake up the knight and archer.
If you'd like, feel free to take this discussion to the forum and continue the discussion there. Since this exercise is present in several tracks, posting this problem there and gathering opinions from people from different tracks can be useful.