Skip to content

Commit 93e7779

Browse files
SaschaManncmcaine
andauthored
annalyn: Clarify description (exercism#2041)
See exercism/exercism#6005 Co-authored-by: Colin Caine <cmcaine@gmail.com> Co-authored-by: Colin Caine <cmcaine@gmail.com>
1 parent 7bc78b3 commit 93e7779

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

exercises/concept/annalyns-infiltration/.docs/instructions.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ Having found the kidnappers, Annalyn considers which of the following actions sh
99
- Fast attack: a fast attack can be made if the knight is sleeping, as it takes time for him to get his armor on, so he will be vulnerable.
1010
- Spy: the group can be spied upon if at least one of them is awake. Otherwise, spying is a waste of time.
1111
- Signal prisoner: the prisoner can be signalled using bird sounds if the prisoner is awake and the archer is sleeping, as archers are trained in bird signaling, so they could intercept the message.
12-
- Free prisoner: if the prisoner is awake and the other two characters are sleeping, a sneaky entry into the camp can free the prisoner. This won't work if the prisoner is sleeping, as the prisoner will be startled by the sudden appearance of her friend and the knight and archer will be awoken. The prisoner can also be freed if the archer is sleeping and Annalyn has her pet dog with her, as the knight will be scared by the dog and will withdraw, and the archer can't equip his bow fast enough to prevent the prisoner from being freed.
12+
- _Free prisoner_: Annalyn can try sneaking into the camp to free the prisoner.
13+
This is a risky thing to do and can only succeed in one of two ways:
14+
- If Annalyn has her pet dog with her she can rescue the prisoner if the archer is asleep.
15+
The knight is scared of the dog and the archer will not have time to get ready before Annalyn and the prisoner can escape.
16+
- If Annalyn does not have her dog then she and the prisoner must be very sneaky!
17+
Annalyn can free the prisoner if the prisoner is awake and the knight and archer are both sleeping, but 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.
1318

1419
You have four tasks: to implement the logic for determining if the above actions are available based on the state of the three characters found in the forest and whether Annalyn's pet dog is present or not.
1520

0 commit comments

Comments
 (0)