Browse Source

Made the instructions more precise for `get them all`. (#617)

content-update
MarieMalarme 4 years ago committed by GitHub
parent
commit
b92a5b58f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      subjects/get-them-all/README.md

12
subjects/get-them-all/README.md

@ -4,18 +4,18 @@
You've been attributed the task to find the main architect of the Tower of Pisa before he achieves his plans, avoiding us nowadays all those lame pictures of people pretending to stop it from falling.
You arrived at the architects' chamber to find him, but all you have in front of you is a bunch of unknown people.\
You arrived at the architects' chamber to find him, but all you have in front of you is a bunch of unknown people.
Step by step, with the little information you have, gather information and figure out by elimination who he is.
On top of the webpage, each of the four buttons fires a function which has to return an array containing 2 entries: the targetted people, and the others eliminated at that step (the ones previously eliminated mustn't be included).
On top of the webpage, each of the four buttons fires a function which has to return an array containing 2 arrays (except for the last function): the targetted people, and the others eliminated at that step - the ones previously eliminated mustn't be included.
- Write the body of the `getArchitects` function, which targets the architects, all corresponding to a `<a>` tag.
- Write the body of the `getArchitects` function, which targets the architects, all corresponding to a `<a>` tag, and eliminates all the non-architects people.
- Write the body of the `getClassical` function, which targets the architects belonging to the `classical` class.
- Write the body of the `getClassical` function, which targets the architects belonging to the `classical` class, and eliminates the non-classical architects.
- Write the body of the `getActive` function, which targets the classical architects who are `active` in their class.
- Write the body of the `getActive` function, which targets the classical architects who are `active` in their class, and eliminates the non-active classical architects.
- Write the body of the `getBonannoPisano` function, which targets the architect you're looking for, whose `id` is `BonannoPisano`.
- Write the body of the `getBonannoPisano` function, which targets the architect you're looking for, whose `id` is `BonannoPisano` (return only this one as a single value, not an array), and eliminates all the remaining active classical architects.
> From now on, don't forget to [**export**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export) all the expected functions, so that they can be imported to be tested

Loading…
Cancel
Save