Skip to content

Commit

Permalink
Match instructions to students stub in annalyns-infiltration (exercis…
Browse files Browse the repository at this point in the history
  • Loading branch information
kuprelweronika authored Feb 21, 2024
1 parent be7dfcd commit 7ff9c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/concept/annalyns-infiltration/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $infiltration->canSpy($is_knight_awake, $is_archer_awake, $is_prisoner_awake);

## 3. Check if the 'Signal Prisoner' action is possible

Implement a function named `canSignalPrisoner` that takes two boolean values, indicating if the archer and the prisoner, respectively, are awake.
Implement a function named `canSignal` that takes two boolean values, indicating if the archer and the prisoner, respectively, are awake.
The function returns `true` if the 'Signal Prisoner' action is available based on the state of the characters.
Otherwise, returns `false`:

Expand All @@ -72,7 +72,7 @@ $infiltration->canSignal($is_archer_awake, $is_prisoner_awake);

## 4. Check if the 'Free Prisoner' action is possible

Implement a function named `canFreePrisoner` that takes four boolean values.
Implement a function named `canLiberate` that takes four boolean values.
The first three parameters indicate if the knight, archer and the prisoner, respectively, are awake.
The last parameter indicates if Annalyn's pet dog is present.
The function returns `true` if the 'Free Prisoner' action is available based on the state of the characters and Annalyn's pet dog presence.
Expand Down

0 comments on commit 7ff9c2c

Please sign in to comment.