Merge pull request #2594 from xexyl/horton94

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2024-07-24 16:56:21 -07:00
commit d731f69ff6
3 files changed
+19 -14

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@
"OK_to_edit" : true, "OK_to_edit" : true,
"display_as" : "c", "display_as" : "c",
"display_via_github" : true, "display_via_github" : true,
"entry_text" : "alternate source code" "entry_text" : "author provided unobfuscated and enhanced code"
}, },
{ {
"file_path" : "horton.orig.c", "file_path" : "horton.orig.c",
+9 -6
View File
@@ -4,6 +4,9 @@
make all make all
``` ```
There is an unobfuscated and enhanced version provided by the author. See [Alternate
code](#alternate-code) below.
## To use: ## To use:
@@ -23,8 +26,9 @@
## Alternate code: ## Alternate code:
This confuses cb greatly. See [horton.alt.c](%%REPO_URL%%/1994/horton/horton.alt.c) for an unobfuscated/enhanced This confuses cb greatly. See
version. [horton.alt.c](%%REPO_URL%%/1994/horton/horton.alt.c) for an
unobfuscated and enhanced version.
### Alternate build: ### Alternate build:
@@ -40,7 +44,7 @@ version.
./horton.alt A B C D ./horton.alt A B C D
``` ```
Where A, B, C and D are numbers like with `horton`. Where `A`, `B`, `C` and `D` are numbers, just like with `horton`.
### Alternate try: ### Alternate try:
@@ -57,8 +61,7 @@ right character. And for extra credit, try to figure out which
character is at the bottom of this hint file. :-) character is at the bottom of this hint file. :-)
You might be interested in the author's article that they cite towards the end You might be interested in the author's article that they cite towards the end
of their remarks, included as PDF files for your convenience, the full of their remarks, included as a PDF file for your convenience.
newsletter and a PDF file of just the pages cited.
## Author's remarks: ## Author's remarks:
@@ -79,7 +82,7 @@ If you get stuck, come back and read below for additional hints and information.
### What this entry does: ### What this entry does:
As should be obvious from 20 feet away, the program is a cubic plotter. As should be obvious from 20 feet away, the program is a cubic plotter.
It plots against certain artists, splattering their cubes with graphs It plots against certain arguments, splattering their cubes with graphs
of their cubic equations. Those dastardly arguments are mere coefficients, of their cubic equations. Those dastardly arguments are mere coefficients,
cogs in the wheels of the grand plot to overthrow the cubics! cogs in the wheels of the grand plot to overthrow the cubics!
+9 -7
View File
@@ -409,19 +409,22 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<!-- BEFORE: 1st line of markdown file: 1994/horton/README.md --> <!-- BEFORE: 1st line of markdown file: 1994/horton/README.md -->
<h2 id="to-build">To build:</h2> <h2 id="to-build">To build:</h2>
<pre><code> make all</code></pre> <pre><code> make all</code></pre>
<p>There is an unobfuscated and enhanced version provided by the author. See <a href="#alternate-code">Alternate
code</a> below.</p>
<h2 id="to-use">To use:</h2> <h2 id="to-use">To use:</h2>
<pre><code> ./horton A B C D</code></pre> <pre><code> ./horton A B C D</code></pre>
<p><code>A</code>, <code>B</code>, <code>C</code> and <code>D</code> are numeric arguments.</p> <p><code>A</code>, <code>B</code>, <code>C</code> and <code>D</code> are numeric arguments.</p>
<h2 id="try">Try:</h2> <h2 id="try">Try:</h2>
<pre><code> ./try.sh</code></pre> <pre><code> ./try.sh</code></pre>
<h2 id="alternate-code">Alternate code:</h2> <h2 id="alternate-code">Alternate code:</h2>
<p>This confuses cb greatly. See <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/horton.alt.c">horton.alt.c</a> for an unobfuscated/enhanced <p>This confuses cb greatly. See
version.</p> <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/horton.alt.c">horton.alt.c</a> for an
unobfuscated and enhanced version.</p>
<h3 id="alternate-build">Alternate build:</h3> <h3 id="alternate-build">Alternate build:</h3>
<pre><code> make alt</code></pre> <pre><code> make alt</code></pre>
<h3 id="alternate-use">Alternate use:</h3> <h3 id="alternate-use">Alternate use:</h3>
<pre><code> ./horton.alt A B C D</code></pre> <pre><code> ./horton.alt A B C D</code></pre>
<p>Where A, B, C and D are numbers like with <code>horton</code>.</p> <p>Where <code>A</code>, <code>B</code>, <code>C</code> and <code>D</code> are numbers, just like with <code>horton</code>.</p>
<h3 id="alternate-try">Alternate try:</h3> <h3 id="alternate-try">Alternate try:</h3>
<pre><code> ./try.alt.sh</code></pre> <pre><code> ./try.alt.sh</code></pre>
<h2 id="judges-remarks">Judges’ remarks:</h2> <h2 id="judges-remarks">Judges’ remarks:</h2>
@@ -429,8 +432,7 @@ version.</p>
right character. And for extra credit, try to figure out which right character. And for extra credit, try to figure out which
character is at the bottom of this hint file. :-)</p> character is at the bottom of this hint file. :-)</p>
<p>You might be interested in the author’s article that they cite towards the end <p>You might be interested in the author’s article that they cite towards the end
of their remarks, included as PDF files for your convenience, the full of their remarks, included as a PDF file for your convenience.</p>
newsletter and a PDF file of just the pages cited.</p>
<h2 id="authors-remarks">Author’s remarks:</h2> <h2 id="authors-remarks">Author’s remarks:</h2>
<p>Run it with any 4 numeric arguments, e.g. <code>./horton 3 2 1 0</code>. Play with the <p>Run it with any 4 numeric arguments, e.g. <code>./horton 3 2 1 0</code>. Play with the
numbers to get a pleasing result, or use it for your high school algebra numbers to get a pleasing result, or use it for your high school algebra
@@ -441,7 +443,7 @@ 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> <p>If you get stuck, come back and read below for additional hints and information.</p>
<h3 id="what-this-entry-does">What this entry does:</h3> <h3 id="what-this-entry-does">What this entry does:</h3>
<p>As should be obvious from 20 feet away, the program is a cubic plotter. <p>As should be obvious from 20 feet away, the program is a cubic plotter.
It plots against certain artists, splattering their cubes with graphs It plots against certain arguments, splattering their cubes with graphs
of their cubic equations. Those dastardly arguments are mere coefficients, of their cubic equations. Those dastardly arguments are mere coefficients,
cogs in the wheels of the grand plot to overthrow the cubics!</p> cogs in the wheels of the grand plot to overthrow the cubics!</p>
<p>Oh, by the way, it uses a self-contained graphtab and frame buffer. <p>Oh, by the way, it uses a self-contained graphtab and frame buffer.
@@ -503,7 +505,7 @@ It’s easily modified to graph <em>any</em> 96x160 bitmap on a dumb terminal.</
<ul> <ul>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/horton.c">horton.c</a> - entry source code</li> <li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/horton.c">horton.c</a> - entry source code</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/Makefile">Makefile</a> - entry Makefile</li> <li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/Makefile">Makefile</a> - entry Makefile</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/horton.alt.c">horton.alt.c</a> - alternate source code</li> <li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/horton.alt.c">horton.alt.c</a> - author provided unobfuscated and enhanced code</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/horton.orig.c">horton.orig.c</a> - original source code</li> <li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/horton.orig.c">horton.orig.c</a> - original source code</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/gtface.c">gtface.c</a> - gtface source code</li> <li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/gtface.c">gtface.c</a> - gtface source code</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/try.alt.sh">try.alt.sh</a> - script to try alternate code</li> <li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/horton/try.alt.sh">try.alt.sh</a> - script to try alternate code</li>