Skip to content

Commit ae9feeb

Browse files
committed
Regenerate all READMEs
1 parent 6b251a5 commit ae9feeb

57 files changed

Lines changed: 232 additions & 192 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎exercises/accumulate/README.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ Keep your hands off that collect/map/fmap/whatchamacallit functionality
2525
provided by your standard library!
2626
Solve this one yourself using other basic tools instead.
2727

28-
Lisp specific: it's perfectly fine to use `MAPCAR` or the equivalent,
29-
as this is idiomatic Lisp, not a library function.
30-
3128

3229
To run the tests:
3330

‎exercises/acronym/README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Help generate some jargon by writing a program that converts a long name
88
like Portable Network Graphics to its acronym (PNG).
99

1010

11-
1211
To run the tests:
1312

1413
```sh

‎exercises/all-your-base/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Implement general base conversion. Given a number in base **a**,
66
represented as a sequence of digits, convert it to base **b**.
77

88
## Note
9+
910
- Try to implement the conversion yourself.
1011
Do not use something else to perform the conversion for you.
1112

@@ -28,7 +29,6 @@ The number 1120, *in base 3*, means:
2829

2930
I think you got the idea!
3031

31-
3232
*Yes. Those three numbers above are exactly the same. Congratulations!*
3333

3434

‎exercises/allergies/README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ ignore those components of the score. For example, if the allergy
3030
score is 257, your program should only report the eggs (1) allergy.
3131

3232

33-
3433
To run the tests:
3534

3635
```sh

‎exercises/atbash-cipher/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ letter, the second with the second-last, and so on.
99

1010
An Atbash cipher for the Latin alphabet would be as follows:
1111

12-
```plain
12+
```text
1313
Plain: abcdefghijklmnopqrstuvwxyz
1414
Cipher: zyxwvutsrqponmlkjihgfedcba
1515
```
@@ -23,6 +23,7 @@ being 5 letters, and punctuation is excluded. This is to make it harder to guess
2323
things based on word boundaries.
2424

2525
## Examples
26+
2627
- Encoding `test` gives `gvhg`
2728
- Decoding `gvhg` gives `test`
2829
- Decoding `gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt` gives `thequickbrownfoxjumpsoverthelazydog`

‎exercises/beer-song/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Produce the lyrics to that beloved classic, that field-trip favorite: 99 Bottles
44

55
Note that not all verses are identical.
66

7-
```plain
7+
```text
88
99 bottles of beer on the wall, 99 bottles of beer.
99
Take one down and pass it around, 98 bottles of beer on the wall.
1010

‎exercises/binary/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ string, your program should produce a decimal output. The
77
program should handle invalid inputs.
88

99
## Note
10+
1011
- Implement the conversion yourself.
1112
Do not use something else to perform the conversion for you.
1213

1314
## About Binary (Base-2)
15+
1416
Decimal is a base-10 system.
1517

1618
A number 23 in base 10 notation can be understood

‎exercises/book-store/README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
To try and encourage more sales of different books from a popular 5 book
44
series, a bookshop has decided to offer discounts on multiple book purchases.
55

6-
One copy of any of the five books costs $8.
6+
One copy of any of the five books costs $8.
77

88
If, however, you buy two different books, you get a 5%
99
discount on those two books.
1010

11-
If you buy 3 different books, you get a 10% discount.
11+
If you buy 3 different books, you get a 10% discount.
1212

1313
If you buy 4 different books, you get a 20% discount.
1414

15-
If you buy all 5, you get a 25% discount.
15+
If you buy all 5, you get a 25% discount.
1616

1717
Note: that if you buy four books, of which 3 are
1818
different titles, you get a 10% discount on the 3 that
19-
form part of a set, but the fourth book still costs $8.
19+
form part of a set, but the fourth book still costs $8.
2020

2121
Your mission is to write a piece of code to calculate the
2222
price of any conceivable shopping basket (containing only
@@ -30,7 +30,7 @@ For example, how much does this basket of books cost?
3030
- 2 copies of the third book
3131
- 1 copy of the fourth book
3232
- 1 copy of the fifth book
33-
33+
3434
One way of grouping these 8 books is:
3535

3636
- 1 group of 5 --> 25% discount (1st,2nd,3rd,4th,5th)

‎exercises/bowling/README.md‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,29 @@
22

33
Score a bowling game.
44

5-
Bowling is game where players roll a heavy ball to knock down pins
5+
Bowling is a game where players roll a heavy ball to knock down pins
66
arranged in a triangle. Write code to keep track of the score
77
of a game of bowling.
88

99
## Scoring Bowling
1010

11-
The game consists of 10 frames. A frame is composed of one or two ball throws with 10 pins standing at frame initialization. There are three cases for the tabulation of a frame.
11+
The game consists of 10 frames. A frame is composed of one or two ball
12+
throws with 10 pins standing at frame initialization. There are three
13+
cases for the tabulation of a frame.
1214

13-
* An open frame is where a score of less than 10 is recorded for the frame. In this case the score for the frame is the number of pins knocked down.
15+
* An open frame is where a score of less than 10 is recorded for the
16+
frame. In this case the score for the frame is the number of pins
17+
knocked down.
1418

15-
* A spare is where all ten pins are knocked down after the second throw. The total value of a spare is 10 plus the number of pins knocked down in their next throw.
19+
* A spare is where all ten pins are knocked down by the second
20+
throw. The total value of a spare is 10 plus the number of pins
21+
knocked down in their next throw.
1622

17-
* A strike is where all ten pins are knocked down after the first throw. The total value of a strike is 10 plus the number of pins knocked down in their next two throws. If a strike is immediately followed by a second strike, then we can not total the value of first strike until they throw the ball one more time.
23+
* A strike is where all ten pins are knocked down by the first
24+
throw. The total value of a strike is 10 plus the number of pins
25+
knocked down in the next two throws. If a strike is immediately
26+
followed by a second strike, then the value of the first strike
27+
cannot be determined until the ball is thrown one more time.
1828

1929
Here is a three frame example:
2030

@@ -30,7 +40,11 @@ Frame 3 is (9 + 0) = 9
3040

3141
This means the current running total is 48.
3242

33-
The tenth frame in the game is a special case. If someone throws a strike or a spare then they get a fill ball. Fill balls exist to calculate the total of the 10th frame. Scoring a strike or spare on the fill ball does not give the player more fill balls. The total value of the 10th frame is the total number of pins knocked down.
43+
The tenth frame in the game is a special case. If someone throws a
44+
strike or a spare then they get a fill ball. Fill balls exist to
45+
calculate the total of the 10th frame. Scoring a strike or spare on
46+
the fill ball does not give the player more fill balls. The total
47+
value of the 10th frame is the total number of pins knocked down.
3448

3549
For a tenth frame of X1/ (strike and a spare), the total value is 20.
3650

‎exercises/change/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ For more detailed info about the Java track see the [help page](http://exercism.
2828

2929
## Source
3030

31-
Software Craftsmanship - Kata-logue [http://craftsmanship.sv.cmu.edu/exercises/coin-change-kata](http://craftsmanship.sv.cmu.edu/exercises/coin-change-kata)
31+
Software Craftsmanship - Coin Change Kata [https://web.archive.org/web/20130115115225/http://craftsmanship.sv.cmu.edu:80/exercises/coin-change-kata](https://web.archive.org/web/20130115115225/http://craftsmanship.sv.cmu.edu:80/exercises/coin-change-kata)
3232

3333
## Submitting Incomplete Solutions
3434
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

0 commit comments

Comments
 (0)