Skip to content

Commit eb8ef76

Browse files
committed
Fix canonical data & minor corrections in Markdown files
1 parent b9062ca commit eb8ef76

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

exercises/intergalactic-transmission/canonical-data.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
},
2626
{
2727
"uuid": "97f27f98-8020-402d-be85-f21ba54a6df0",
28-
"description": "0x02 is transmitted as 0x0100",
28+
"description": "0x02 is transmitted as 0x0300",
2929
"property": "transmitSequence",
3030
"input": {
3131
"message": ["0x02"]
3232
},
33-
"expected": ["0x01", "0x00"]
33+
"expected": ["0x03", "0x00"]
3434
},
3535
{
3636
"uuid": "24712fb9-0336-4e2f-835e-d2350f29c420",

exercises/intergalactic-transmission/instructions.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
# Instructions
22

3-
Your job is to help implement the message sequencer to calculate the transmission sequence and the decoder for receiving messages.
3+
Your job is to help implement the message sequencer, which calculates the transmission sequence, and the decoder for receiving messages.
44

55
A parity bit is simple way of detecting transmission errors.
66
The transmitters and receivers can only transmit and receive _exactly_ eight bits at a time (including the parity bit).
77
The parity bit is set so that there is an _even_ number 1s in each transmission and is always the first bit from the right.
88
So if the receiver receives `11000001`, `01110101` or `01000000` (i.e. a transmission with an odd number of 1 bits), it knows there is an error.
99

10-
However, messages are rarely this short.
11-
The message needs to be transmitted in a sequence when they are longer.
10+
However, messages are rarely this short, and need to be transmitted in a sequence when they are longer.
1211

13-
For example, consider the message `11000000 00000001 11000000 11011110` (or in `C0 01 C0 DE` hex).
12+
For example, consider the message `11000000 00000001 11000000 11011110` (or `C0 01 C0 DE` in hex).
1413

1514
Since each transmission contains exactly eight bits, it can only contain seven bits of data and the parity bit.
1615
A parity bit must then be inserted after every seven bits of data:

exercises/intergalactic-transmission/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Now imagine the consequences:
1010
- Losing contact with the Kepler Whirl system when "save new worm hole" becomes "cave new worm hole".
1111
- Or plunging the universe into existential horror by replacing a cowboy emoji 🤠 with a clown emoji 🤡.
1212

13-
Detecting corrupted messages isnt just important — it's critical.
13+
Detecting corrupted messages isn't just important — it's critical.
1414
The receiver _must_ know when something has gone wrong before disaster strikes.
1515

1616
But how?

0 commit comments

Comments
 (0)