Skip to content

Commit 8732076

Browse files
kytrinyxee7
andauthored
Rework two-fer documentation (#2204)
* Rework two-fer documentation This splits two-fer into separate introduction and instructions documents. It also rewords the exercise to feel a bit less stilted, and (hopefully) a bit more friendly. It adds a bit of explanation for the definition of the term two-fer and where it comes from, as well as providing a bit of context ("story", if you will) for the exercise itself. * Update exercises/two-fer/introduction.md Co-authored-by: ee7 <45465154+ee7@users.noreply.github.com> * Tweak two-fer docs Give a less socially awkward reason for saying 'you'. * Update exercises/two-fer/instructions.md Co-authored-by: ee7 <45465154+ee7@users.noreply.github.com> --------- Co-authored-by: ee7 <45465154+ee7@users.noreply.github.com>
1 parent 20849dc commit 8732076

File tree

3 files changed

+33
-27
lines changed

3 files changed

+33
-27
lines changed

exercises/two-fer/description.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

exercises/two-fer/instructions.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Instructions
2+
3+
Your task is to determine what you will say as you give away the extra cookie.
4+
5+
If your friend likes cookies, and is named Do-yun, then you will say:
6+
7+
```text
8+
One for Do-yun, one for me.
9+
```
10+
11+
If your friend doesn't like cookies, you give the cookie to the next person in line at the bakery.
12+
Since you don't know their name, you will say _you_ instead.
13+
14+
```text
15+
One for you, one for me.
16+
```
17+
18+
Here are some examples:
19+
20+
|Name |Dialogue
21+
|:-------|:------------------
22+
|Alice |One for Alice, one for me.
23+
|Bohdan |One for Bohdan, one for me.
24+
| |One for you, one for me.
25+
|Zaphod |One for Zaphod, one for me.

exercises/two-fer/introduction.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Introduction
2+
3+
In some English accents, when you say "two for" quickly, it sounds like "two fer".
4+
Two-for-one is a way of saying that if you buy one, you also get one for free.
5+
So the phrase "two-fer" often implies a two-for-one offer.
6+
7+
Imagine a bakery that has a holiday offer where you can buy two cookies for the price of one ("two-fer one!").
8+
You go for the offer and (very generously) decide to give the extra cookie to a friend.

0 commit comments

Comments
 (0)