Skip to content

Commit 4c3e747

Browse files
Added line breaks to instructions.md
1 parent 10f181e commit 4c3e747

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

exercises/concept/captains-log/.docs/instructions.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
## Instructions
22

3-
Mary is a big fan of the TV series Star Trek: The Next Generation. She often plays pen-and-paper role playing games, where she and her friends pretend to be the crew of the Starship Enterprise. Mary's character is Captain Picard, which means she has to keep the captain's log. She loves the creative part of the game, but doesn't like to generate random data on the spot.
3+
Mary is a big fan of the TV series Star Trek: The Next Generation.
4+
She often plays pen-and-paper role playing games, where she and her friends pretend to be the crew of the Starship Enterprise.
5+
Mary's character is Captain Picard, which means she has to keep the captain's log.
6+
She loves the creative part of the game, but doesn't like to generate random data on the spot.
47

58
Help Mary by creating random generators for data commonly appearing in the captain's log.
69

710
### 1. Generate a random starship registry number
811

9-
Enterprise (registry number NCC-1701) is not the only starship flying around! When it rendezvous with another starship, Mary needs to log the registry number of that starship.
12+
Enterprise (registry number NCC-1701) is not the only starship flying around!
13+
When it rendezvous with another starship, Mary needs to log the registry number of that starship.
1014

1115
Registry numbers start with the prefix "NCC-" and then use a number from 1000 to 9999 (both inclusive).
1216

@@ -21,7 +25,9 @@ randomShipRegistryNumber();
2125

2226
What's the use of a log if it doesn't include dates?
2327

24-
A stardate is a floating point number. The adventures of the Starship Enterprise from the first season of The Next Generation take place between the stardates 41000.0 and 42000.0. The "4" stands for the 24th century, the "1" for the first season.
28+
A stardate is a floating point number.
29+
The adventures of the Starship Enterprise from the first season of The Next Generation take place between the stardates 41000.0 and 42000.0.
30+
The "4" stands for the 24th century, the "1" for the first season.
2531

2632
Implement the function randomStardate that returns a floating point number between 41000.0 (inclusive) and 42000.0 (exclusive).
2733

@@ -32,10 +38,13 @@ randomStardate();
3238

3339
### 3. Generate a random planet
3440

35-
The Starship Enterprise encounters many planets in its travels. Planets in the Star Trek universe are split into categories based on their properties. For example, Earth is a class M planet. All possible planetary classes are: D, H, J, K, L, M, N, R, T, and Y.
41+
The Starship Enterprise encounters many planets in its travels.
42+
Planets in the Star Trek universe are split into categories based on their properties.
43+
For example, Earth is a class M planet.
44+
All possible planetary classes are: D, H, J, K, L, M, N, R, T, and Y.
3645

3746
Implement the randomPlanetClassfunction.
38-
It should return one of the planetary classes at random.
47+
It should return one of the planetary classes at random.
3948

4049
```javascript
4150
randomPlanetClass();

0 commit comments

Comments
 (0)