From 89af26ada2d25ad65b01084307fcefce59c8182f Mon Sep 17 00:00:00 2001 From: Sascha Mann Date: Thu, 3 Oct 2024 18:09:29 +0200 Subject: [PATCH] annalyn: Clarify description (#222) See https://github.com/exercism/exercism/issues/6005 Co-authored-by: Colin Caine --- exercises/concept/booleans/.docs/instructions.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/exercises/concept/booleans/.docs/instructions.md b/exercises/concept/booleans/.docs/instructions.md index b42d660b..0ae3e86d 100644 --- a/exercises/concept/booleans/.docs/instructions.md +++ b/exercises/concept/booleans/.docs/instructions.md @@ -9,7 +9,12 @@ Having found the kidnappers, Annalyn considers which of the following actions sh - 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. - Spy: the group can be spied upon if at least one of them is awake. Otherwise, spying is a waste of time. - 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. -- 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. +- _Free prisoner_: Annalyn can try sneaking into the camp to free the prisoner. + This is a risky thing to do and can only succeed in one of two ways: + - 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. + - If Annalyn does not have her dog then she and the prisoner must be very sneaky! + 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. 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.