Skip to content

Commit e3656d0

Browse files
sjwarnerErikSchierboom
authored andcommitted
update READMEs using configlet (#714)
* update READMEs using configlet * update READMEs with update-docs.sh
1 parent aaabc8d commit e3656d0

4 files changed

Lines changed: 34 additions & 13 deletions

File tree

exercises/darts/README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1+
# Darts
2+
13
Write a function that returns the earned points in a single toss of a Darts game.
24

35
[Darts](https://en.wikipedia.org/wiki/Darts) is a game where players
46
throw darts to a [target](https://en.wikipedia.org/wiki/Darts#/media/File:Darts_in_a_dartboard.jpg).
57

68
In our particular instance of the game, the target rewards with 4 different amounts of points, depending on where the dart lands:
79

8-
- If the dart lands outside the target, player earns no points (0 points).
9-
- If the dart lands in the outer circle of the target, player earns 1 point.
10-
- If the dart lands in the middle circle of the target, player earns 5 points.
11-
- If the dart lands in the inner circle of the target, player earns 10 points.
10+
* If the dart lands outside the target, player earns no points (0 points).
11+
* If the dart lands in the outer circle of the target, player earns 1 point.
12+
* If the dart lands in the middle circle of the target, player earns 5 points.
13+
* If the dart lands in the inner circle of the target, player earns 10 points.
1214

1315
The outer circle has a radius of 10 units (This is equivalent to the total radius for the entire target), the middle circle a radius of 5 units, and the inner circle a radius of 1. Of course, they are all centered to the same point (That is, the circles are [concentric](http://mathworld.wolfram.com/ConcentricCircles.html)) defined by the coordinates (0, 0).
1416

1517
Write a function that given a point in the target (defined by its `real` cartesian coordinates `x` and `y`), returns the correct amount earned by a dart landing in that point.
16-
1718
## Running the tests
1819

1920
To run the tests, run the command `dotnet test` from within the exercise directory.
@@ -23,5 +24,9 @@ To run the tests, run the command `dotnet test` from within the exercise directo
2324
For more detailed information about the C# track, including how to get help if
2425
you're having trouble, please visit the exercism.io [C# language page](http://exercism.io/languages/csharp/resources).
2526

27+
## Source
28+
29+
Inspired by an excersie created by a professor Della Paolera in Argentina
30+
2631
## Submitting Incomplete Solutions
2732
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

exercises/pythagorean-triplet/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ which,
77
a**2 + b**2 = c**2
88
```
99

10+
and such that,
11+
12+
```text
13+
a < b < c
14+
```
15+
1016
For example,
1117

1218
```text

exercises/simple-cipher/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ substitution cipher a little more fault tolerant by providing a source
6161
of randomness and ensuring that the key contains only lowercase letters.
6262

6363
If someone doesn't submit a key at all, generate a truly random key of
64-
at least 100 characters in length.
65-
66-
If the key submitted is not composed only of lowercase letters, your
67-
solution should handle the error in a language-appropriate way.
64+
at least 100 alphanumeric characters in length.
6865

6966
## Extensions
7067

exercises/two-fer/README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,28 @@
22

33
`Two-fer` or `2-fer` is short for two for one. One for you and one for me.
44

5+
Given a name, return a string with the message:
6+
57
```text
6-
"One for X, one for me."
8+
One for X, one for me.
79
```
810

9-
When X is a name or "you".
11+
Where X is the given name.
12+
13+
However, if the name is missing, return the string:
14+
15+
```text
16+
One for you, one for me.
17+
```
1018

11-
If the given name is "Alice", the result should be "One for Alice, one for me."
12-
If no name is given, the result should be "One for you, one for me."
19+
Here are some examples:
1320

21+
|Name | String to return
22+
|:------:|:-----------------:
23+
|Alice | One for Alice, one for me.
24+
|Bob | One for Bob, one for me.
25+
| | One for you, one for me.
26+
|Zaphod | One for Zaphod, one for me.
1427

1528
## Running the tests
1629

0 commit comments

Comments
 (0)