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
+59
-86
@@ -130,8 +130,8 @@
|
||||
<h2 id="author"><a name="author"></a>Author:</h2>
|
||||
<ul>
|
||||
<li>Name: <a href="../../authors.html#John_Tromp">John Tromp</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 -->
|
||||
@@ -147,8 +147,8 @@ America</em> (<em>United States</em>) <br><br></li>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./tromp</span> 5</span>
|
||||
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a></span>
|
||||
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="ex">./tromp</span> 10 <span class="st">"hkl jq"</span></span></code></pre></div>
|
||||
<p>The second command, <code>./tromp 10 "hkl jq"</code>, will set up the
|
||||
keys kind of like vim:</p>
|
||||
<p>The second command, <code>./tromp 10 "hkl jq"</code>, will set up the keys kind of like
|
||||
vim:</p>
|
||||
<ul>
|
||||
<li>h - left (left)</li>
|
||||
<li>k - rotate (up)</li>
|
||||
@@ -157,37 +157,34 @@ keys kind of like vim:</p>
|
||||
<li>space - pause (space)</li>
|
||||
<li>q - quit (:q)</li>
|
||||
</ul>
|
||||
<p>NOTE: after the game ends a file called <code>HI</code> will be in
|
||||
the directory with the high scores (up to 20 runs saved) so one can see
|
||||
who has the highest score. The file might look like:</p>
|
||||
<p>NOTE: after the game ends a file called <code>HI</code> will be in the directory with the
|
||||
high scores (up to 20 runs saved) so one can see who has the highest score. The
|
||||
file might look like:</p>
|
||||
<pre><code>330 by luser
|
||||
136 by loser
|
||||
100 by winner</code></pre>
|
||||
<p>… or so, where in this case the <a
|
||||
href="https://web.archive.org/web/20181023221954/https://www.chicagotribune.com/news/ct-xpm-2002-07-31-0207310310-story.html">luser
|
||||
is the winner, the loser is in second place and the winner is the
|
||||
<p>… or so, where in this case the <a href="https://web.archive.org/web/20181023221954/https://www.chicagotribune.com/news/ct-xpm-2002-07-31-0207310310-story.html">luser is the winner, the loser is in second
|
||||
place and the winner is the
|
||||
loser</a> :-)</p>
|
||||
<h2 id="alternate-code">Alternate code:</h2>
|
||||
<p>The author provided an alternate version of the code with some
|
||||
improvements. See the judges’ additional remarks in the author’s
|
||||
remarks, for more details.</p>
|
||||
<p>The author provided an alternate version of the code with some improvements. See
|
||||
the judges’ additional remarks in the author’s remarks, for more details.</p>
|
||||
<h3 id="alternate-build">Alternate build:</h3>
|
||||
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> alt</span></code></pre></div>
|
||||
<h3 id="alternate-use">Alternate use:</h3>
|
||||
<p>Use <code>tromp.alt</code> as you would <code>tromp</code> above.</p>
|
||||
<p>NOTE: testing more than one user updating the high score file, one of
|
||||
the benefits of the alt version, has not been done.</p>
|
||||
<p>The original unmodified alternate code, which will no longer work
|
||||
right if it even compiles, is provided later in the author’s
|
||||
remarks.</p>
|
||||
<p>NOTE: testing more than one user updating the high score file, one of the
|
||||
benefits of the alt version, has not been done.</p>
|
||||
<p>The original unmodified alternate code, which will no longer work right if it
|
||||
even compiles, is provided later in the author’s remarks.</p>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>This is a character terminal version of the <code>TETRIS</code> game.
|
||||
It runs on a VT100 compatible terminal or emulator. It is best used at
|
||||
4800 baud or more.</p>
|
||||
<p>By default, <code>drops_per_sec</code>, the number of times a
|
||||
tetrimino will drop in a second, is 2. The default
|
||||
<code>cmd_string</code> is <code>jkl pq</code>. The first 6 characters
|
||||
of <code>cmd_string</code> relate to the following 6 game commands:</p>
|
||||
It runs on a VT100 compatible terminal or emulator. It is
|
||||
best used at 4800 baud or more.</p>
|
||||
<p>By default, <code>drops_per_sec</code>, the number of times a tetrimino
|
||||
will drop in a second, is 2. The default <code>cmd_string</code> is
|
||||
<code>jkl pq</code>. The first 6 characters of <code>cmd_string</code> relate
|
||||
to the following 6 game commands:</p>
|
||||
<ul>
|
||||
<li>j - left</li>
|
||||
<li>k - rotate</li>
|
||||
@@ -196,48 +193,43 @@ of <code>cmd_string</code> relate to the following 6 game commands:</p>
|
||||
<li>p - pause</li>
|
||||
<li>q - quit</li>
|
||||
</ul>
|
||||
<p>Specifying <code>cmd_string</code> allows one to redefine the
|
||||
commands. The pause command pauses the game, clears the screen and
|
||||
prints the current score. To resume, type the pause character again,
|
||||
which by default is <code>p</code>.</p>
|
||||
<p>Specifying <code>cmd_string</code> allows one to redefine the commands.
|
||||
The pause command pauses the game, clears the screen and
|
||||
prints the current score. To resume, type the pause
|
||||
character again, which by default is <code>p</code>.</p>
|
||||
<p>As was stated last year, we are likely to be more strict about
|
||||
portability in the future. [ We mean it this time :-) ]</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<p>This program plays the familiar game of <code>TETRIS</code> with the
|
||||
following features:</p>
|
||||
<ul>
|
||||
<li><p>outputs vt100-like escape-sequences for cursor positioning and
|
||||
normal/reverse video in curses like fashion (minimal output for screen
|
||||
updates)</p></li>
|
||||
<li><p>outputs vt100-like escape-sequences for cursor
|
||||
positioning and normal/reverse video in curses
|
||||
like fashion (minimal output for screen updates)</p></li>
|
||||
<li><p>continuously increasing speed (except in pause)</p></li>
|
||||
<li><p>start speed selectable by giving <code>n</code> as first
|
||||
argument, where <code>n</code> is the number of drops per second
|
||||
(default=2).</p></li>
|
||||
<li><p>controls also selectable by giving as the second argument a
|
||||
string of 6 characters. By default they are
|
||||
<code>jkl pq</code>.</p></li>
|
||||
<li><p>screen is blanked during the pause and the score is
|
||||
shown</p></li>
|
||||
<li><p>start speed selectable by giving <code>n</code> as first argument,
|
||||
where <code>n</code> is the number of drops per second (default=2).</p></li>
|
||||
<li><p>controls also selectable by giving as the second argument
|
||||
a string of 6 characters. By default they are <code>jkl pq</code>.</p></li>
|
||||
<li><p>screen is blanked during the pause and the score is shown</p></li>
|
||||
<li><p>maintains a high-score table</p></li>
|
||||
</ul>
|
||||
<p>Giving a full path name for the table will result in a system-wide
|
||||
high-score allowing a competition between users.</p>
|
||||
<h3 id="additional-remarks-from-the-judges">Additional remarks from the
|
||||
judges:</h3>
|
||||
<p>Giving a full path name for the table will result in a
|
||||
system-wide high-score allowing a competition between users.</p>
|
||||
<h3 id="additional-remarks-from-the-judges">Additional remarks from the judges:</h3>
|
||||
<p>The author provided us with the following notes and new version of
|
||||
the program:</p>
|
||||
<p>Here is a somewhat improved version of my tetris entry. All the
|
||||
changes are in the <code>popen()</code> at the end. Formerly a move was
|
||||
done to the HI score file which is not permitted for other users. Now
|
||||
other users can change the <code>HI</code> score file. The extra option
|
||||
<code>-m</code> is passed to sort, so that it knows that its input files
|
||||
are already sorted. The <code>-o</code> output option of sort is used
|
||||
instead of a temporary file.</p>
|
||||
<p>You may also want to consider giving just the raw option to
|
||||
<code>stty</code> at the start and <code>-raw</code> at the end. This
|
||||
further reduces the size of the program, but has the possible
|
||||
disadvantage that the program can only by stopped by ‘q’ or by the `kill
|
||||
-9’ command.</p>
|
||||
changes are in the <code>popen()</code> at the end. Formerly a move was done
|
||||
to the HI score file which is not permitted for other users. Now
|
||||
other users can change the <code>HI</code> score file. The extra option <code>-m</code> is
|
||||
passed to sort, so that it knows that its input files are already
|
||||
sorted. The <code>-o</code> output option of sort is used instead of a
|
||||
temporary file.</p>
|
||||
<p>You may also want to consider giving just the raw option to <code>stty</code>
|
||||
at the start and <code>-raw</code> at the end. This further reduces the size of
|
||||
the program, but has the possible disadvantage that the program
|
||||
can only by stopped by ‘q’ or by the `kill -9’ command.</p>
|
||||
<div class="sourceCode" id="cb6"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a> <span class="dt">long</span> h<span class="op">[</span><span class="dv">4</span><span class="op">];</span>t<span class="op">(){</span>h<span class="op">[</span><span class="dv">3</span><span class="op">]-=</span>h<span class="op">[</span><span class="dv">3</span><span class="op">]/</span><span class="dv">3000</span><span class="op">;</span>setitimer<span class="op">(</span><span class="dv">0</span><span class="op">,</span>h<span class="op">,</span><span class="dv">0</span><span class="op">);}</span>c<span class="op">,</span>d<span class="op">,</span>l<span class="op">,</span>v<span class="op">[]={(</span><span class="dt">int</span><span class="op">)</span>t<span class="op">,</span><span class="dv">0</span><span class="op">,</span><span class="dv">2</span><span class="op">},</span>w<span class="op">,</span>s<span class="op">,</span>I<span class="op">,</span>K</span>
|
||||
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a> <span class="op">=</span><span class="dv">0</span><span class="op">,</span>i<span class="op">=</span><span class="dv">276</span><span class="op">,</span>j<span class="op">,</span>k<span class="op">,</span>q<span class="op">[</span><span class="dv">276</span><span class="op">],</span>Q<span class="op">[</span><span class="dv">276</span><span class="op">],*</span>n<span class="op">=</span>q<span class="op">,*</span>m<span class="op">,</span>x<span class="op">=</span><span class="dv">17</span><span class="op">,</span>f<span class="op">[]={</span><span class="dv">7</span><span class="op">,-</span><span class="dv">13</span><span class="op">,-</span><span class="dv">12</span><span class="op">,</span><span class="dv">1</span><span class="op">,</span><span class="dv">8</span><span class="op">,-</span><span class="dv">11</span><span class="op">,-</span><span class="dv">12</span><span class="op">,-</span><span class="dv">1</span><span class="op">,</span><span class="dv">9</span><span class="op">,-</span><span class="dv">1</span><span class="op">,</span><span class="dv">1</span><span class="op">,</span></span>
|
||||
<span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a> <span class="dv">12</span><span class="op">,</span><span class="dv">3</span><span class="op">,-</span><span class="dv">13</span><span class="op">,-</span><span class="dv">12</span><span class="op">,-</span><span class="dv">1</span><span class="op">,</span><span class="dv">12</span><span class="op">,-</span><span class="dv">1</span><span class="op">,</span><span class="dv">11</span><span class="op">,</span><span class="dv">1</span><span class="op">,</span><span class="dv">15</span><span class="op">,-</span><span class="dv">1</span><span class="op">,</span><span class="dv">13</span><span class="op">,</span><span class="dv">1</span><span class="op">,</span><span class="dv">18</span><span class="op">,-</span><span class="dv">1</span><span class="op">,</span><span class="dv">1</span><span class="op">,</span><span class="dv">2</span><span class="op">,</span><span class="dv">0</span><span class="op">,-</span><span class="dv">12</span><span class="op">,-</span><span class="dv">1</span><span class="op">,</span><span class="dv">11</span><span class="op">,</span><span class="dv">1</span><span class="op">,-</span><span class="dv">12</span><span class="op">,</span><span class="dv">1</span><span class="op">,</span><span class="dv">13</span><span class="op">,</span><span class="dv">10</span><span class="op">,-</span><span class="dv">12</span><span class="op">,</span></span>
|
||||
@@ -258,53 +250,34 @@ disadvantage that the program can only by stopped by ‘q’ or by the `kill
|
||||
<span id="cb6-18"><a href="#cb6-18" aria-hidden="true" tabindex="-1"></a> <span class="st">"stty -cbreak echo stop </span><span class="sc">\023</span><span class="st">;sort -mnr -o HI - HI;cat HI"</span><span class="op">,</span><span class="st">"w"</span><span class="op">);</span>fprintf<span class="op">(</span>d<span class="op">,</span></span>
|
||||
<span id="cb6-19"><a href="#cb6-19" aria-hidden="true" tabindex="-1"></a> <span class="st">"</span><span class="sc">%4d</span><span class="st"> from level </span><span class="sc">%1d</span><span class="st"> by </span><span class="sc">%s\n</span><span class="st">"</span><span class="op">,</span>w<span class="op">,</span>l<span class="op">,</span>getlogin<span class="op">());</span>pclose<span class="op">(</span>d<span class="op">);}</span></span></code></pre></div>
|
||||
<p>NOTE: the alternate version was fixed for modern systems in 2023.</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>
|
||||
<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-1989tromp"><a name="inventory"></a>Inventory for
|
||||
1989/tromp</h1>
|
||||
<h1 id="inventory-for-1989tromp"><a name="inventory"></a>Inventory for 1989/tromp</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/1989/tromp/tromp.c">tromp.c</a>
|
||||
- entry source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/tromp/Makefile">Makefile</a>
|
||||
- entry Makefile</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/tromp/tromp.alt.c">tromp.alt.c</a>
|
||||
- alternative source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/tromp/tromp.orig.c">tromp.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a href="1989_tromp.tar.bz2">1989_tromp.tar.bz2</a> - download entry
|
||||
source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/tromp/tromp.c">tromp.c</a> - entry source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/tromp/Makefile">Makefile</a> - entry Makefile</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/tromp/tromp.alt.c">tromp.alt.c</a> - alternative source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/tromp/tromp.orig.c">tromp.orig.c</a> - original source</li>
|
||||
<li><a href="1989_tromp.tar.bz2">1989_tromp.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/1989/tromp/.entry.json">.entry.json</a>
|
||||
- description of entry in JSON</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/tromp/.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/1989/tromp/.entry.json">.entry.json</a> - description of entry in JSON</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/tromp/.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/1989/tromp/README.md">README.md</a>
|
||||
- markdown source for index.html</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/tromp/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