add notices to those who wish for a greater challenge
We add the following level-3 header to help people identify text they may wish to skip if they wish for a greater challenge: ``` ``` After that notice we add: ``` **If you want a greater challenge, don't read any further**: just try to understand the program via the source. If you get stuck, come back and read below for additional hints and information. ``` And sometimes follow with: ``` ``` Or sometimes follow with: ``` ``` Where the alt code impacts a "greater challenge", we add instead: ``` **If you want a greater challenge, don't read any further**: just try to understand the program without looking at the Alternate code. If you get stuck, come back and look at the Alternate code. ``` And where a given command impacts a "greater challenge", we add instead: ``` **If you want a greater challenge, don't read any further**: just try to understand the program without running the command below. If you get stuck, come back and run the following command: ``` Perform `make www` to perform the above and test under macOS.
This commit is contained in:
1 parent
7af7a80cca
commit
2e2ae5f132
112 files changed
+845
-216
No files matched your search
+1
-1
@@ -40,7 +40,7 @@ The [Most likely to be awarded - 2018/ciura](ciura/index.html) has an amazing vo
|
||||
There are also nods to entries of the years [2000/bellard](../2000/bellard/index.html),
|
||||
[2015/yang](../2015/yang/index.html), ...
|
||||
|
||||
...We'll stop spouting spoilers now. Have fun exploring all the entries!
|
||||
...We'll stop spouting too many details now. Have fun exploring all the entries!
|
||||
|
||||
### Historical note:
|
||||
|
||||
|
||||
@@ -64,10 +64,16 @@ This code has been compiled and tested on:
|
||||
* UNIX V7 pcc (Johnson's C compiler) on a [simulated PDP-11/45](http://simh.trailing-edge.com/)
|
||||
(see the "**SPOILER** section below for further detail)
|
||||
|
||||
<div style="margin-bottom:60em;margin-top:4em"><strong>Spoiler below; scroll down.</strong></div>
|
||||
|
||||
### NOTICE to those who wish for a greater challenge
|
||||
|
||||
**If you want a greater challenge, don't read any further**:
|
||||
just try to understand the program via the source.
|
||||
|
||||
If you get stuck, come back and read below for additional hints and information.
|
||||
|
||||
|
||||
### SPOILER:
|
||||
### How this entry works:
|
||||
|
||||
This started life as a personal challenge: write the shortest hex dump utility
|
||||
in C.
|
||||
|
||||
@@ -434,10 +434,11 @@ It adds several nice-to-have features, and allows salt-to-taste customizability.
|
||||
<li>UNIX V7 pcc (Johnson’s C compiler) on a <a href="http://simh.trailing-edge.com/">simulated PDP-11/45</a>
|
||||
(see the “<strong>SPOILER</strong> section below for further detail)</li>
|
||||
</ul>
|
||||
<div style="margin-bottom:60em;margin-top:4em">
|
||||
<strong>Spoiler below; scroll down.</strong>
|
||||
</div>
|
||||
<h3 id="spoiler">SPOILER:</h3>
|
||||
<h3 id="notice-to-those-who-wish-for-a-greater-challenge">NOTICE to those who wish for a greater challenge</h3>
|
||||
<p><strong>If you want a greater challenge, don’t read any further</strong>:
|
||||
just try to understand the program via the source.</p>
|
||||
<p>If you get stuck, come back and read below for additional hints and information.</p>
|
||||
<h3 id="how-this-entry-works">How this entry works:</h3>
|
||||
<p>This started life as a personal challenge: write the shortest hex dump utility
|
||||
in C.</p>
|
||||
<p>The self-imposed ground rules in the hunt for shortest:</p>
|
||||
|
||||
+1
-1
@@ -412,7 +412,7 @@ It is something completely different.</p>
|
||||
<p>The <a href="ciura/index.html">Most likely to be awarded - 2018/ciura</a> has an amazing vocabulary!</p>
|
||||
<p>There are also nods to entries of the years <a href="../2000/bellard/index.html">2000/bellard</a>,
|
||||
<a href="../2015/yang/index.html">2015/yang</a>, …</p>
|
||||
<p>…We’ll stop spouting spoilers now. Have fun exploring all the entries!</p>
|
||||
<p>…We’ll stop spouting too many details now. Have fun exploring all the entries!</p>
|
||||
<h3 id="historical-note">Historical note:</h3>
|
||||
<p>In 2023-2024 the IOCCC website was drastically changed with the same look for
|
||||
every year and this changed the styling as well. But in 2018 different years had
|
||||
|
||||
+10
-2
@@ -65,7 +65,15 @@ So I had to sit down and solve those tricky questions with Nano and a C
|
||||
compiler.
|
||||
|
||||
|
||||
### Little spoilers:
|
||||
### NOTICE to those who wish for a greater challenge
|
||||
|
||||
**If you want a greater challenge, don't read any further**:
|
||||
just try to understand the program via the source.
|
||||
|
||||
If you get stuck, come back and read below for additional hints and information.
|
||||
|
||||
|
||||
### Little hints:
|
||||
|
||||
Basically, the program draws animated ASCII art of the Big Dipper using Annie
|
||||
Jump Cannon's spectral classification system of stars and I think the colors of
|
||||
@@ -121,7 +129,7 @@ mostly is okay. YMMV, as they say.
|
||||
Please do not feed little babies chocolate.
|
||||
|
||||
|
||||
### Major spoilers:
|
||||
### Major hints:
|
||||
|
||||
I incorporated the [Fletcher 16 checksum
|
||||
algorithm](https://en.wikipedia.org/wiki/Fletcher%27s_checksum) into the source
|
||||
|
||||
@@ -429,7 +429,11 @@ file <em>poikola.pdf</em>.</p>
|
||||
this star and may I have some Easter eggs?”</p>
|
||||
<p>So I had to sit down and solve those tricky questions with Nano and a C
|
||||
compiler.</p>
|
||||
<h3 id="little-spoilers">Little spoilers:</h3>
|
||||
<h3 id="notice-to-those-who-wish-for-a-greater-challenge">NOTICE to those who wish for a greater challenge</h3>
|
||||
<p><strong>If you want a greater challenge, don’t read any further</strong>:
|
||||
just try to understand the program via the source.</p>
|
||||
<p>If you get stuck, come back and read below for additional hints and information.</p>
|
||||
<h3 id="little-hints">Little hints:</h3>
|
||||
<p>Basically, the program draws animated ASCII art of the Big Dipper using Annie
|
||||
Jump Cannon’s spectral classification system of stars and I think the colors of
|
||||
the output are as accurate as possible.</p>
|
||||
@@ -467,7 +471,7 @@ show anything at all. In other cases it won’t show all the colours right but
|
||||
mostly is okay. YMMV, as they say.</p>
|
||||
<h3 id="warnings-and-restrictions-required-by-law">Warnings and restrictions required by law:</h3>
|
||||
<p>Please do not feed little babies chocolate.</p>
|
||||
<h3 id="major-spoilers">Major spoilers:</h3>
|
||||
<h3 id="major-hints">Major hints:</h3>
|
||||
<p>I incorporated the <a href="https://en.wikipedia.org/wiki/Fletcher%27s_checksum">Fletcher 16 checksum
|
||||
algorithm</a> into the source
|
||||
for security reasons; it might be challenging to make changes without breaking
|
||||
|
||||
+12
-15
@@ -169,17 +169,16 @@ generated5.c: ${PROG}.c right shift
|
||||
@${RM} -f $@
|
||||
./shift < $< | ./right > $@
|
||||
|
||||
############
|
||||
# spoilers #
|
||||
############
|
||||
########################
|
||||
# detailed information #
|
||||
########################
|
||||
|
||||
spoiler: spoilers
|
||||
details:
|
||||
@echo "Really show the detailed information? If you must see it run:"
|
||||
@echo
|
||||
@echo " make i_give_up_show_me_the_details"
|
||||
|
||||
spoilers:
|
||||
@echo "Really show spoilers? Please build this target to confirm:"
|
||||
@echo " i_give_up_show_me_the_spoilers"
|
||||
|
||||
i_give_up_show_me_the_spoilers: msg3 msg4 msg5 msg6 msg7 msg8 msg9
|
||||
i_give_up_show_me_the_details: msg3 msg4 msg5 msg6 msg7 msg8 msg9
|
||||
|
||||
msg3: generated6.c
|
||||
$(CC) $(CFLAGS) $< -o $@
|
||||
@@ -229,13 +228,11 @@ generated11.c: generated10.c right shift
|
||||
generated12.c: msg7
|
||||
./msg7 > $@
|
||||
|
||||
####################################
|
||||
# spoilers for the truly impatient #
|
||||
####################################
|
||||
#####################################################
|
||||
# final information message for the truly impatient #
|
||||
#####################################################
|
||||
|
||||
spoiler_for_the_truly_impatient: i_just_want_to_see_the_final_message
|
||||
|
||||
i_just_want_to_see_the_final_message: msg11.txt
|
||||
the_last_word: msg11.txt
|
||||
@${CAT} $<
|
||||
|
||||
msg11.txt: msg11 ${PROG}.c
|
||||
|
||||
+28
-9
@@ -42,15 +42,6 @@ reveal messages and one more tool that can be used to reveal the final message
|
||||
hidden in the original source. All of these can be created using combinations
|
||||
of `./left`, `./right` and `./shift` and the additionally generated programs.
|
||||
|
||||
The final message can be revealed using
|
||||
|
||||
``` <!---sh-->
|
||||
./msg9 < prog.c
|
||||
```
|
||||
|
||||
But what combinations will generate `./msg3`, `./msg4`, `./msg5`, `./msg6`,
|
||||
`./msg7`, `./msg8` and finally `./msg9`?
|
||||
|
||||
|
||||
## Author's remarks:
|
||||
|
||||
@@ -169,6 +160,34 @@ will look weird after rotation, for example.
|
||||
`Nuko` compiles without warnings with all compilers above, even with
|
||||
`-Wall -Wextra -pedantic` for gcc and clang.
|
||||
|
||||
|
||||
### NOTICE to those who wish for a greater challenge
|
||||
|
||||
**If you want a greater challenge, don't read any further**:
|
||||
just try to understand the program without running the command below.
|
||||
|
||||
If you get stuck, come back and run the following command:
|
||||
|
||||
``` <!---sh-->
|
||||
./msg9 < prog.c
|
||||
```
|
||||
|
||||
But what combinations will generate `./msg3`, `./msg4`, `./msg5`, `./msg6`,
|
||||
`./msg7`, `./msg8` and finally `./msg9`?
|
||||
|
||||
For more hints try:
|
||||
|
||||
``` <!---sh-->
|
||||
make details
|
||||
```
|
||||
|
||||
And for the last word, try:
|
||||
|
||||
``` <!---sh-->
|
||||
make the_last_word
|
||||
```
|
||||
|
||||
|
||||
<!--
|
||||
|
||||
Copyright © 1984-2024 by Landon Curt Noll. All Rights Reserved.
|
||||
|
||||
+11
-4
@@ -424,10 +424,6 @@ that this remark is completely misleading.</p>
|
||||
reveal messages and one more tool that can be used to reveal the final message
|
||||
hidden in the original source. All of these can be created using combinations
|
||||
of <code>./left</code>, <code>./right</code> and <code>./shift</code> and the additionally generated programs.</p>
|
||||
<p>The final message can be revealed using</p>
|
||||
<pre><code> ./msg9 < prog.c</code></pre>
|
||||
<p>But what combinations will generate <code>./msg3</code>, <code>./msg4</code>, <code>./msg5</code>, <code>./msg6</code>,
|
||||
<code>./msg7</code>, <code>./msg8</code> and finally <code>./msg9</code>?</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<h3 id="tools-usage">Tools’ usage:</h3>
|
||||
<p><code>Nuko</code> is a text rotator: given some text in <code>stdin</code>, <code>Nuko</code> will write the
|
||||
@@ -509,6 +505,17 @@ will look weird after rotation, for example.</p>
|
||||
</ul>
|
||||
<p><code>Nuko</code> compiles without warnings with all compilers above, even with
|
||||
<code>-Wall -Wextra -pedantic</code> for gcc and clang.</p>
|
||||
<h3 id="notice-to-those-who-wish-for-a-greater-challenge">NOTICE to those who wish for a greater challenge</h3>
|
||||
<p><strong>If you want a greater challenge, don’t read any further</strong>:
|
||||
just try to understand the program without running the command below.</p>
|
||||
<p>If you get stuck, come back and run the following command:</p>
|
||||
<pre><code> ./msg9 < prog.c</code></pre>
|
||||
<p>But what combinations will generate <code>./msg3</code>, <code>./msg4</code>, <code>./msg5</code>, <code>./msg6</code>,
|
||||
<code>./msg7</code>, <code>./msg8</code> and finally <code>./msg9</code>?</p>
|
||||
<p>For more hints try:</p>
|
||||
<pre><code> make details</code></pre>
|
||||
<p>And for the last word, try:</p>
|
||||
<pre><code> make the_last_word</code></pre>
|
||||
<!--
|
||||
|
||||
Copyright © 1984-2024 by Landon Curt Noll. All Rights Reserved.
|
||||
|
||||
Reference in new issue
Block a user