Skip to content

Commit 152c8ca

Browse files
Merge pull request #519 from exercism/kytrinyx/inline-insert
Inline the track-wide exercise README insert into the exercise template
2 parents 2d9dd2c + 889541b commit 152c8ca

118 files changed

Lines changed: 523 additions & 598 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.

config/exercise_readme.go.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
{{- with .Hints }}
55
{{ . }}
66
{{ end }}
7-
{{- with .TrackInsert }}
8-
{{ . }}
9-
{{ end }}
10-
{{- with .Spec.Credits -}}
7+
### Submitting Exercises
8+
9+
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/{{ .Spec.Slug }}` directory.
10+
{{ with .Spec.Credits }}
1111
## Source
1212

1313
{{ . }}

docs/EXERCISE_README_INSERT.md

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

exercises/accumulate/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,13 @@ 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
## Hints
3229
This exercise requires you to write an extension method. For more information, see [this page](https://msdn.microsoft.com/en-us//library/bb383977.aspx).
3330

3431
### Submitting Exercises
3532

36-
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/<exerciseName>` directory.
33+
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/accumulate` directory.
3734

38-
For example, if you're submitting `bob.cs` for the Bob exercise, the submit command would be something like `exercism submit <path_to_exercism_dir>/csharp/bob/bob.cs`.
3935
## Source
4036

4137
Conversation with James Edward Gray II [https://twitter.com/jeg2](https://twitter.com/jeg2)

exercises/acronym/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ Techies love their TLA (Three Letter Acronyms)!
77
Help generate some jargon by writing a program that converts a long name
88
like Portable Network Graphics to its acronym (PNG).
99

10-
1110
### Submitting Exercises
1211

13-
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/<exerciseName>` directory.
12+
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/acronym` directory.
1413

15-
For example, if you're submitting `bob.cs` for the Bob exercise, the submit command would be something like `exercism submit <path_to_exercism_dir>/csharp/bob/bob.cs`.
1614
## Source
1715

1816
Julien Vanier [https://github.com/monkbroc](https://github.com/monkbroc)

exercises/all-your-base/README.md

Lines changed: 2 additions & 4 deletions
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,14 +29,11 @@ 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
### Submitting Exercises
3535

36-
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/<exerciseName>` directory.
37-
38-
For example, if you're submitting `bob.cs` for the Bob exercise, the submit command would be something like `exercism submit <path_to_exercism_dir>/csharp/bob/bob.cs`.
36+
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/all-your-base` directory.
3937

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

exercises/allergies/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,13 @@ allergens that score 256, 512, 1024, etc.). Your program should
2929
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

32-
3332
## Hints
3433
This exercise requires you to use bitwise operations. For more information, see [this page](https://msdn.microsoft.com/en-us/library/6a71f45d.aspx).
3534

3635
### Submitting Exercises
3736

38-
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/<exerciseName>` directory.
37+
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/allergies` directory.
3938

40-
For example, if you're submitting `bob.cs` for the Bob exercise, the submit command would be something like `exercism submit <path_to_exercism_dir>/csharp/bob/bob.cs`.
4139
## Source
4240

4341
Jumpstart Lab Warm-up [http://jumpstartlab.com](http://jumpstartlab.com)

exercises/alphametics/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ letters in words are replaced with numbers.
77

88
For example `SEND + MORE = MONEY`:
99

10-
```
10+
```text
1111
S E N D
1212
M O R E +
1313
-----------
@@ -16,7 +16,7 @@ M O N E Y
1616

1717
Replacing these with valid numbers gives:
1818

19-
```
19+
```text
2020
9 5 6 7
2121
1 0 8 5 +
2222
-----------
@@ -40,9 +40,7 @@ Try to find a more sophisticated solution.
4040

4141
### Submitting Exercises
4242

43-
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/<exerciseName>` directory.
44-
45-
For example, if you're submitting `bob.cs` for the Bob exercise, the submit command would be something like `exercism submit <path_to_exercism_dir>/csharp/bob/bob.cs`.
43+
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/alphametics` directory.
4644

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

exercises/anagram/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ Given `"listen"` and a list of candidates like `"enlists" "google"
88

99
### Submitting Exercises
1010

11-
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/<exerciseName>` directory.
11+
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/anagram` directory.
1212

13-
For example, if you're submitting `bob.cs` for the Bob exercise, the submit command would be something like `exercism submit <path_to_exercism_dir>/csharp/bob/bob.cs`.
1413
## Source
1514

1615
Inspired by the Extreme Startup game [https://github.com/rchatley/extreme_startup](https://github.com/rchatley/extreme_startup)

exercises/armstrong-numbers/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Armstrong Numbers
2+
13
An [Armstrong number](https://en.wikipedia.org/wiki/Narcissistic_number) is a number that is the sum of its own digits each raised to the power of the number of digits.
24

35
For example:
@@ -7,4 +9,15 @@ For example:
79
- 153 is an Armstrong number, because: `153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153`
810
- 154 is *not* an Armstrong number, because: `154 != 1^3 + 5^3 + 4^3 = 1 + 125 + 64 = 190`
911

10-
Write some code to determine whether a number is an Armstrong number.
12+
Write some code to determine whether a number is an Armstrong number.
13+
14+
### Submitting Exercises
15+
16+
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/armstrong-numbers` directory.
17+
18+
## Source
19+
20+
Wikipedia [https://en.wikipedia.org/wiki/Narcissistic_number](https://en.wikipedia.org/wiki/Narcissistic_number)
21+
22+
## Submitting Incomplete Solutions
23+
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

exercises/atbash-cipher/README.md

Lines changed: 3 additions & 3 deletions
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,15 +23,15 @@ 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`
2930

3031
### Submitting Exercises
3132

32-
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/<exerciseName>` directory.
33+
Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/atbash-cipher` directory.
3334

34-
For example, if you're submitting `bob.cs` for the Bob exercise, the submit command would be something like `exercism submit <path_to_exercism_dir>/csharp/bob/bob.cs`.
3535
## Source
3636

3737
Wikipedia [http://en.wikipedia.org/wiki/Atbash](http://en.wikipedia.org/wiki/Atbash)

0 commit comments

Comments
 (0)