Skip to content

Commit

Permalink
two-fer: sync (exercism#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Mar 30, 2024
1 parent 733ef1f commit 7af459b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
17 changes: 8 additions & 9 deletions exercises/practice/two-fer/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,23 @@

Your task is to determine what you will say as you give away the extra cookie.

If your friend likes cookies, and is named Do-yun, then you will say:
If you know the person's name (e.g. if they're named Do-yun), then you will say:

```text
One for Do-yun, one for me.
```

If your friend doesn't like cookies, you give the cookie to the next person in line at the bakery.
Since you don't know their name, you will say _you_ instead.
If you don't know the person's name, you will say _you_ instead.

```text
One for you, one for me.
```

Here are some examples:

|Name |Dialogue
|:-------|:------------------
|Alice |One for Alice, one for me.
|Bohdan |One for Bohdan, one for me.
| |One for you, one for me.
|Zaphod |One for Zaphod, one for me.
| Name | Dialogue |
| :----- | :-------------------------- |
| Alice | One for Alice, one for me. |
| Bohdan | One for Bohdan, one for me. |
| | One for you, one for me. |
| Zaphod | One for Zaphod, one for me. |
2 changes: 1 addition & 1 deletion exercises/practice/two-fer/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Two-for-one is a way of saying that if you buy one, you also get one for free.
So the phrase "two-fer" often implies a two-for-one offer.

Imagine a bakery that has a holiday offer where you can buy two cookies for the price of one ("two-fer one!").
You go for the offer and (very generously) decide to give the extra cookie to a friend.
You take the offer and (very generously) decide to give the extra cookie to someone else in the queue.
2 changes: 1 addition & 1 deletion exercises/practice/two-fer/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
".meta/example.php"
]
},
"blurb": "Create a sentence of the form \"One for X, one for me.\"",
"blurb": "Create a sentence of the form \"One for X, one for me.\".",
"source_url": "https://github.com/exercism/problem-specifications/issues/757"
}

0 comments on commit 7af459b

Please sign in to comment.