-
-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I added appropriate alternate text for the SVG images. I kept the ASCII Art for the interactive prompt but adjusted for a fence post error in the second example.
- Loading branch information
1 parent
b5e9272
commit a662612
Showing
1 changed file
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,36 +12,56 @@ The position information encoding is calculated as follows: | |
2. Convert the number from binary to decimal. | ||
3. Show the result on the display. | ||
|
||
Example 1: | ||
## Example 1 | ||
|
||
 | ||
|
||
```text | ||
Chicken Coop: | ||
_ _ _ _ _ _ _ | ||
|E| |E|E| | |E| | ||
``` | ||
|
||
### Resulting Binary | ||
|
||
Resulting Binary: | ||
1 0 1 1 0 0 1 | ||
 | ||
|
||
```text | ||
_ _ _ _ _ _ _ | ||
|1|0|1|1|0|0|1| | ||
``` | ||
|
||
### Decimal number on the display | ||
|
||
Decimal number on the display: | ||
89 | ||
|
||
Actual eggs in the coop: | ||
### Actual eggs in the coop | ||
|
||
4 | ||
|
||
|
||
Check failure on line 41 in exercises/eliuds-eggs/introduction.md
|
||
## Example 2 | ||
|
||
 | ||
|
||
|
||
Check failure on line 46 in exercises/eliuds-eggs/introduction.md
|
||
```text | ||
_ _ _ _ _ _ _ | ||
| | | |E| | | | | ||
``` | ||
|
||
Example 2: | ||
### Resulting Binary | ||
|
||
 | ||
|
||
```text | ||
Chicken Coop: | ||
_ _ _ _ _ _ _ _ | ||
| | | |E| | | | | | ||
_ _ _ _ _ _ _ | ||
|0|0|0|1|0|0|0| | ||
``` | ||
|
||
Resulting Binary: | ||
0 0 0 1 0 0 0 0 | ||
### Decimal number on the display | ||
|
||
Decimal number on the display: | ||
16 | ||
|
||
Actual eggs in the coop: | ||
### Actual eggs in the coop | ||
|
||
1 | ||
``` |