You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/concept/annalyns-infiltration/.docs/instructions.md
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,12 @@ Having found the kidnappers, Annalyn considers which of the following actions sh
9
9
- 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.
10
10
- Spy: the group can be spied upon if at least one of them is awake. Otherwise, spying is a waste of time.
11
11
- 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.
13
18
14
19
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.