force use of pandoc version >= 3.1.12.2
The `bin/pandoc-wrapper.sh` tool will verify that the ssytem has a recent enough version of `pandoc(1)`. We explain why we insist on `pandoc(1)`. version >= 3.1.12.2 in comments where the $PANDOC_MIN_VERSION is set. Added `--wrap=preserve` as a default argument to `pandoc(1)`. While this change will impact every HTML file generated, we believe this will improve the ability of someone to look at the generated HTML and correlate with the original markdown. Changed `bin/pandoc-wrapper.sh` VERSION from "1.4.2 2024-03-17" to "1.4.3 2024-03-18". Performed `make www` to achieve all of the above and to generate HTML using the new `--wrap=preserve` `pandoc(1)` mode.
This commit is contained in:
1 parent
9eb7a54e9f
commit
b0b212acb1
402 files changed
+37061
-55132
No files matched your search
+47
-72
@@ -130,8 +130,8 @@
|
||||
<h2 id="author"><a name="author"></a>Author:</h2>
|
||||
<ul>
|
||||
<li>Name: <a href="../../authors.html#Daniel_Vik">Daniel Vik</a><br>
|
||||
Location: <a href="../../location.html#US">US</a> - <em>United States of
|
||||
America</em> (<em>United States</em>) <br><br></li>
|
||||
Location: <a href="../../location.html#US">US</a> - <em>United States of America</em> (<em>United States</em>)
|
||||
<br><br></li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-author.sh -->
|
||||
@@ -156,16 +156,14 @@ America</em> (<em>United States</em>) <br><br></li>
|
||||
modes/options.</p>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>Daniel Vik has presented a tour de force feature rich X11-based
|
||||
racing game that fit within the contest size limits. Take a glance at
|
||||
the feature list he provided below. Amazing!</p>
|
||||
<p>The author posted a video of this on YouTube: <a
|
||||
href="https://www.youtube.com/watch?v=xTseqWCtAUA"
|
||||
class="uri">https://www.youtube.com/watch?v=xTseqWCtAUA</a>.</p>
|
||||
racing game that fit within the contest size limits. Take a
|
||||
glance at the feature list he provided below. Amazing!</p>
|
||||
<p>The author posted a video of this on YouTube:
|
||||
<a href="https://www.youtube.com/watch?v=xTseqWCtAUA" class="uri">https://www.youtube.com/watch?v=xTseqWCtAUA</a>.</p>
|
||||
<p>Happy touring on the road and in the code!</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<h3 id="features">Features</h3>
|
||||
<p>This program is a complete car race game with a lot of nice
|
||||
features:</p>
|
||||
<p>This program is a complete car race game with a lot of nice features:</p>
|
||||
<ul>
|
||||
<li><p>Drive on a road in a 3D landscape with hills and curves.</p></li>
|
||||
<li><p>Mountains in the horizon.</p></li>
|
||||
@@ -174,8 +172,7 @@ features:</p>
|
||||
<li><p>Snow when driving in the winter.</p></li>
|
||||
<li><p>Slippery road when driving in the winter.</p></li>
|
||||
<li><p>When driving off the road, the car slows down to a halt.</p></li>
|
||||
<li><p>Three different race tracks that takes about one minute to
|
||||
complete.</p></li>
|
||||
<li><p>Three different race tracks that takes about one minute to complete.</p></li>
|
||||
<li><p>Speedometer.</p></li>
|
||||
<li><p>Computer driven opponent cars.</p></li>
|
||||
<li><p>Collision detection when driving into other cars.</p></li>
|
||||
@@ -183,9 +180,9 @@ complete.</p></li>
|
||||
<li><p>The best lap time is stored as reference.</p></li>
|
||||
</ul>
|
||||
<h3 id="build-and-run">Build and Run</h3>
|
||||
<p>Compile the source code and link X libraries if necessary. The
|
||||
program takes three options which have to be typed in a specific order
|
||||
as described below.</p>
|
||||
<p>Compile the source code and link X libraries if necessary.
|
||||
The program takes three options which have to be typed in a specific
|
||||
order as described below.</p>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">Usage:</span> ./vik1 <span class="pp">[</span><span class="st">'a'</span><span class="pp">][</span><span class="st">'d'</span><span class="pp">][</span><span class="ss">#</span><span class="pp">]</span></span>
|
||||
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a></span>
|
||||
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="ex">a</span> <span class="at">-</span> Advanced racing in a winter landscape</span>
|
||||
@@ -201,86 +198,64 @@ $ ./vik1 3 Run track 3 at daytime in the summer
|
||||
$ ./vik1 d3 Run track 3 at night in the summer
|
||||
$ ./vik1 ad2 Run track 2 at night in the winter</code></pre>
|
||||
<p>Note that the order in which the argument characters are entered is
|
||||
important. It is for example not possible to type
|
||||
<code>./vik1 da</code>. (Well it is possible, but the result will not be
|
||||
as expected.)</p>
|
||||
important. It is for example not possible to type <code>./vik1 da</code>. (Well it is
|
||||
possible, but the result will not be as expected.)</p>
|
||||
<p>The space key accelerates the car. Releasing the space key slowly
|
||||
reduces the speed. The left and right arrow keys are used to steer the
|
||||
car.</p>
|
||||
<h3 id="obfuscation">Obfuscation</h3>
|
||||
<p>The main obfuscation is the fact that the program is extremely
|
||||
compact. There are a few things I didn’t want to do, e.g. define
|
||||
<code>#define</code> to a single letter to save some space, or to remove
|
||||
casts to save some space.</p>
|
||||
<p>The program uses a lot of variables. In fact, all letters
|
||||
<code>a-z</code> are used and most letters <code>A-Z</code>.</p>
|
||||
<p>The constants are chosen very carefully and they have multiple
|
||||
purposes, e.g. a constant can be both the length of the track and a
|
||||
color.</p>
|
||||
<p>Most of the code is kept inside five <code>for</code> loops each
|
||||
without a body. Each <code>for</code> loop does many things. One
|
||||
<code>for</code> loop draws all cars by restarting a couple of times.
|
||||
Another draws the road, mountains, and the sun.</p>
|
||||
<p><code>main()</code> is called recursively. The return value and
|
||||
output depends on the arguments. <code>main()</code> can return the
|
||||
current time, draw lines and of course be the entry point of the
|
||||
application.</p>
|
||||
<p>The program frequently uses the <code>?:</code> operator mainly to
|
||||
save space but it makes the program more obscure.</p>
|
||||
<p>The main obfuscation is the fact that the program is extremely compact.
|
||||
There are a few things I didn’t want to do, e.g. define <code>#define</code> to a
|
||||
single letter to save some space, or to remove casts to save some space.</p>
|
||||
<p>The program uses a lot of variables. In fact, all letters <code>a-z</code> are used
|
||||
and most letters <code>A-Z</code>.</p>
|
||||
<p>The constants are chosen very carefully and they have multiple purposes,
|
||||
e.g. a constant can be both the length of the track and a color.</p>
|
||||
<p>Most of the code is kept inside five <code>for</code> loops each without a body. Each <code>for</code>
|
||||
loop does many things. One <code>for</code> loop draws all cars by restarting a
|
||||
couple of times. Another draws the road, mountains, and the sun.</p>
|
||||
<p><code>main()</code> is called recursively. The return value and output depends on the
|
||||
arguments. <code>main()</code> can return the current time, draw lines and of course be
|
||||
the entry point of the application.</p>
|
||||
<p>The program frequently uses the <code>?:</code> operator mainly to save space but it
|
||||
makes the program more obscure.</p>
|
||||
<h3 id="compiler-warnings">Compiler warnings</h3>
|
||||
<p>There are no compiler warnings when compiling with <code>-ansi</code>
|
||||
but there are many warnings from lclint. Mainly because the program is
|
||||
very optimized for code size.</p>
|
||||
<p>There are no compiler warnings when compiling with <code>-ansi</code> but there are
|
||||
many warnings from lclint. Mainly because the program is very
|
||||
optimized for code size.</p>
|
||||
<h3 id="limitations">Limitations</h3>
|
||||
<p>The program only compiles and runs on X based systems.</p>
|
||||
<p>The program requires a display with 24 bit color depth. It also
|
||||
assumes that the byte order of the colors are as on my Linux PC. That
|
||||
is, The colors are represented by a 32 bit value where the bytes (from
|
||||
high to low) are <code>{ 0, RED, GREEN, BLUE }</code>.</p>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0
|
||||
License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights
|
||||
Reserved. You are free to share and adapt this file under the terms of
|
||||
this license:</p>
|
||||
<p>The program requires a display with 24 bit color depth. It also assumes
|
||||
that the byte order of the colors are as on my Linux PC. That is, The
|
||||
colors are represented by a 32 bit value where the bytes (from high to
|
||||
low) are <code>{ 0, RED, GREEN, BLUE }</code>.</p>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0 License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved.
|
||||
You are free to share and adapt this file under the terms of this license:</p>
|
||||
<pre><code>Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</code></pre>
|
||||
<p>For more information, see:
|
||||
https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
<p>For more information, see: https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
|
||||
<!-- END: this line ends content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||||
<!-- START: this line starts content for HTML phase 22 by: bin/output-index-inventory.sh via bin/md2html.sh -->
|
||||
|
||||
<!-- START: this line starts content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
<h1 id="inventory-for-2004vik1"><a name="inventory"></a>Inventory for
|
||||
2004/vik1</h1>
|
||||
<h1 id="inventory-for-2004vik1"><a name="inventory"></a>Inventory for 2004/vik1</h1>
|
||||
<p><a href="#top">Jump to top</a></p>
|
||||
<h2 id="primary-files">Primary files</h2>
|
||||
<ul>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/vik1.c">vik1.c</a>
|
||||
- entry source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/Makefile">Makefile</a>
|
||||
- entry Makefile</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/vik1.orig.c">vik1.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a href="2004_vik1.tar.bz2">2004_vik1.tar.bz2</a> - download entry
|
||||
source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/vik1.c">vik1.c</a> - entry source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/Makefile">Makefile</a> - entry Makefile</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/vik1.orig.c">vik1.orig.c</a> - original source</li>
|
||||
<li><a href="2004_vik1.tar.bz2">2004_vik1.tar.bz2</a> - download entry source</li>
|
||||
</ul>
|
||||
<h2 id="secondary-files">Secondary files</h2>
|
||||
<ul>
|
||||
<li><a href="index.html">index.html</a> - entry home page</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/.entry.json">.entry.json</a>
|
||||
- description of entry in JSON</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/.gitignore">.gitignore</a>
|
||||
- list of files that should not be committed under git</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/.entry.json">.entry.json</a> - description of entry in JSON</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/.gitignore">.gitignore</a> - list of files that should not be committed under git</li>
|
||||
<li><a href=".path">.path</a> - directory path from top directory</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/README.md">README.md</a>
|
||||
- markdown source for index.html</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2004/vik1/README.md">README.md</a> - markdown source for index.html</li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
Reference in new issue
Block a user