Skip to content

Commit c4b923f

Browse files
authored
annalyns-infiltration: Update docs (#679)
* fix incorrect use of truthy * fix grammar issues * fix typo * rewording for consistency
1 parent 4eef36e commit c4b923f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ We need to check if the knight is awake and _invert_ its truth value. This can b
66

77
## 2. Check if the group can be spied upon
88

9-
We want the function to return `true` if _any_ of the supplied predicates are true. This can be done using the [`or`][or] function.
9+
We want the function to return `true` if _any_ of the supplied predicates are `true`. This can be done using the [`or`][or] function.
1010

1111
## 3. Check if the prisoner can be signalled
1212

13-
We want to return `true` if and only if _all_ of the supplied predicates are truthy. This can be done with the [`and`][and] function.
13+
We want to return `true` if and only if _all_ of the supplied predicates are `true`. This can be done with the [`and`][and] function.
1414

1515
## 4. Check if the prisoner can be freed
1616

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You have four tasks: to implement the logic for determining if the above actions
2020

2121
## 1. Check if a fast attack can be made
2222

23-
Implement the `can-fast-attack?` function that takes a boolean value that indicates if the knight is awake. This function returns `true` if a fast attack can be made based on the state of the knight. Otherwise, returns `false`:
23+
Implement the `can-fast-attack?` function, which takes a boolean value indicating whether the knight is awake. The function returns `true` if a fast attack can be made based on the state of the knight. Otherwise, it returns `false`:
2424

2525
```clojure
2626
(def knight-awake? true)
@@ -31,7 +31,7 @@ Implement the `can-fast-attack?` function that takes a boolean value that indica
3131

3232
## 2. Check if the group can be spied upon
3333

34-
Implement the `can-spy?` function that takes three boolean values, indicating if the knight, archer and the prisoner, respectively, are awake. The function returns `true` if the group can be spied upon, based on the state of the three characters. Otherwise, returns `false`:
34+
Implement the `can-spy?` function, which takes three boolean values indicating whether the knight, archer and the prisoner, respectively, are awake. The function returns `true` if the group can be spied upon based on the state of the three characters. Otherwise, it returns `false`:
3535

3636
```clojure
3737
(def knight-awake? false)
@@ -44,7 +44,7 @@ Implement the `can-spy?` function that takes three boolean values, indicating if
4444

4545
## 3. Check if the prisoner can be signalled
4646

47-
Implement the `can-signal-prisoner?` function that takes two boolean values, indicating if the archer and the prisoner, respectively, are awake. The function returns `true` if the prisoner can be signalled, based on the state of the two characters. Otherwise, returns `false`:
47+
Implement the `can-signal-prisoner?` function, which takes two boolean values indicating whether the archer and the prisoner, respectively, are awake. The function returns `true` if the prisoner can be signalled based on the state of the two characters. Otherwise, it returns `false`:
4848

4949
```clojure
5050
(def archer-awake? false)
@@ -56,7 +56,7 @@ Implement the `can-signal-prisoner?` function that takes two boolean values, ind
5656

5757
## 4. Check if the prisoner can be freed
5858

59-
Implement the `can-free-prisoner?` function 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 prisoner can be freed based on the state of the three characters and Annalyn's pet dog presence. Otherwise, it returns `false`:
59+
Implement the `can-free-prisoner?` function, which takes four boolean values. The first three parameters indicate whether the knight, archer and the prisoner, respectively, are awake. The last parameter indicates whether Annalyn's pet dog is present. The function returns `true` if the prisoner can be freed based on the state of the three characters and Annalyn's pet dog presence. Otherwise, it returns `false`:
6060

6161
```clojure
6262
(def knight-awake? false)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
Booleans in Clojure are represented by `true` or `false`.
44

5-
Predicate functions (functions which return a boolean) will typically end with a quesion mark (`?`), but this is by convention only.
5+
Predicate functions (functions which return a boolean) will typically end with a question mark (`?`), but this is by convention only.
66

77
The core library includes functions for logical operators such as `not`, `and`, and `or`.

0 commit comments

Comments
 (0)