fix makrdown links to HTML files that use a %%TOKEN%%
This commit is contained in:
1 parent
c6eb14516e
commit
1d5fcc04a7
24 files changed
+414
-414
No files matched your search
@@ -475,7 +475,7 @@ way negative size will force a win.</p>
|
||||
head several places until you end up getting to the max size (by way of it
|
||||
being unsigned). This isn’t a bug even if it might seem like one. In fact
|
||||
this is the basis of the grow/shrink mode of play that I talk about in the
|
||||
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/gameplay.html">gameplay.html</a> file.</p>
|
||||
<a href="gameplay.html">gameplay.html</a> file.</p>
|
||||
<p>Here’s another thing to be aware of. Let’s say you do:</p>
|
||||
<pre><code> SIZE=1 GROW=-1 ./prog</code></pre>
|
||||
<p>How many bugs will it take before you win? In fact it’s two: you would see the
|
||||
@@ -569,7 +569,7 @@ that 49 is the max snake size. How is this derived and why?</p>
|
||||
(<code>playable_rows * playable_columns</code>). I have played with this many
|
||||
times and I do not believe there should be a problem. If there is it’s from a
|
||||
very poor implementation of rand() and I discuss this in
|
||||
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/troubleshooting.html">troubleshooting.html</a>.</p>
|
||||
<a href="troubleshooting.html">troubleshooting.html</a>.</p>
|
||||
<p>There I also give some test outputs without the cap in place to give an idea of
|
||||
when it became a problem (or would have). In short this is known but I do not
|
||||
think it will be a problem and I have given resolutions. In any event without
|
||||
|
||||
@@ -288,13 +288,13 @@ The obvious question is why didn't I put in a break? Because of the IOCCC size
|
||||
rule 2 and what would it do anyway? I guess it would win but to my mind that is
|
||||
a bug and I prefer putting in restrictions to try and make it very unlikely.
|
||||
|
||||
[crazy.log.html]: %%REPO_URL%%/2020/ferguson1/crazy.log.html
|
||||
[gameplay.html]: %%REPO_URL%%/2020/ferguson1/gameplay.html
|
||||
[troubleshooting.html]: %%REPO_URL%%/2020/ferguson1/troubleshooting.html
|
||||
[gameplay.html]: %%REPO_URL%%/2020/ferguson1/gameplay.html
|
||||
[cannibalism.log.html]: %%REPO_URL%%/2020/ferguson1/cannibalism.log.html
|
||||
[crazy.log.html]: crazy.log.html
|
||||
[gameplay.html]: gameplay.html
|
||||
[troubleshooting.html]: troubleshooting.html
|
||||
[gameplay.html]: gameplay.html
|
||||
[cannibalism.log.html]: cannibalism.log.html
|
||||
[https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms]: https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms
|
||||
[spoilers.html]: %%REPO_URL%%/2020/ferguson1/spoilers.html
|
||||
[spoilers.html]: spoilers.html
|
||||
|
||||
|
||||
<hr style="width:10%;text-align:left;margin-left:0">
|
||||
|
||||
@@ -427,11 +427,11 @@ for the input keys.</p>
|
||||
<h1 id="testing-terminal-environmentcapabilities">1. <a href="#toc">Testing terminal environment/capabilities</a></h1>
|
||||
</div>
|
||||
<p>Most people probably won’t have any issue at all but for those who have any
|
||||
problems with the terminal see the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/terminals.html">terminals.html</a>
|
||||
problems with the terminal see the <a href="terminals.html">terminals.html</a>
|
||||
file for more information on the terminal capabilities testing utility I
|
||||
include.</p>
|
||||
<p>For troubleshooting other problems see <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/troubleshooting.html">troubleshooting.html</a>
|
||||
and <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/bugs.html">bugs.html</a>.</p>
|
||||
<p>For troubleshooting other problems see <a href="troubleshooting.html">troubleshooting.html</a>
|
||||
and <a href="bugs.html">bugs.html</a>.</p>
|
||||
<div id="input">
|
||||
<h1 id="input-keys">2. <a href="#toc">Input keys</a></h1>
|
||||
</div>
|
||||
@@ -704,7 +704,7 @@ will see that the arrow has moved over:</p>
|
||||
left go right etc.) and then after some length (but before you get beyond the
|
||||
snake) turn (so that you go perpendicular) and then watch as the snake starts
|
||||
unwinding at one place and then suddenly unwinds another direction.</p>
|
||||
<p>An example of extreme cannibalism is in the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/cannibalism.log.html">cannibalism.log.html</a>
|
||||
<p>An example of extreme cannibalism is in the <a href="cannibalism.log.html">cannibalism.log.html</a>
|
||||
file. It explains information about the file
|
||||
including how to find the bug, head and tail of the snake, at least where it was
|
||||
documented. The first run has several dumps. The final example has the snake
|
||||
@@ -753,7 +753,7 @@ the game is won is 199 - also a prime!</p>
|
||||
<div id="modes">
|
||||
<h1 id="gameplay-modes">4. <a href="#toc">Gameplay modes</a></h1>
|
||||
</div>
|
||||
<p>Here I list a number of different modes of play. In the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/bugs.html">bugs.html</a>
|
||||
<p>Here I list a number of different modes of play. In the <a href="bugs.html">bugs.html</a>
|
||||
file I even show how there’s a built-in test unit for some
|
||||
modes! There are certainly other modes that could be imagined: the modes below
|
||||
happened over time and some were simply an accidental discovery or something I
|
||||
@@ -889,7 +889,7 @@ actually tried it.</p>
|
||||
<p>The parameters above were chosen after playing with the mode a bit to find a
|
||||
value that wouldn’t take that much time but still would pose a challenge. One
|
||||
could reverse it so that one shrinks more than growing.</p>
|
||||
<p>The <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/crazy.log.html">crazy.log.html</a> file has several screen
|
||||
<p>The <a href="ferguson1/crazy.log.html">crazy.log.html</a> file has several screen
|
||||
dumps with this idea.</p>
|
||||
<p>You could also have it so that eating a bug makes you shrink and moving so many
|
||||
moves you grow. I tried this and for me it was far more fun. The <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/play.sh">play.sh</a>
|
||||
|
||||
@@ -910,15 +910,15 @@ the imagination and creativity almost anything is possible.** This is something
|
||||
they believe in themselves!** I would have never thought this the case for me
|
||||
years ago but I know it's true now. **Believe in yourself. Always.**
|
||||
|
||||
[terminals.html]: %%REPO_URL%%/2020/ferguson1/terminals.html
|
||||
[troubleshooting.html]: %%REPO_URL%%/2020/ferguson1/troubleshooting.html
|
||||
[bugs.html]: %%REPO_URL%%/2020/ferguson1/bugs.html
|
||||
[spoilers.html]: %%REPO_URL%%/2020/ferguson1/spoilers.html
|
||||
[terminals.html]: terminals.html
|
||||
[troubleshooting.html]: troubleshooting.html
|
||||
[bugs.html]: bugs.html
|
||||
[spoilers.html]: spoilers.html
|
||||
[snake-colours.sh]: %%REPO_URL%%/2020/ferguson1/snake-colours.sh
|
||||
[number of hertz (flashes) per second triggering seizures]: https://www.epilepsysociety.org.uk/photosensitive-epilepsy#.Xjgpwi2ZOgQ
|
||||
[termcaps.c]: %%REPO_URL%%/2020/ferguson1/termcaps.c
|
||||
[cannibalism.log.html]: %%REPO_URL%%/2020/ferguson1/cannibalism.log.html
|
||||
[crazy.log.html]: %%REPO_URL%%/2020/ferguson1/crazy.log.html
|
||||
[cannibalism.log.html]: cannibalism.log.html
|
||||
[crazy.log.html]: ferguson1/crazy.log.html
|
||||
[play.sh]: %%REPO_URL%%/2020/ferguson1/play.sh
|
||||
|
||||
|
||||
|
||||
@@ -378,7 +378,7 @@
|
||||
|
||||
<!-- BEFORE: 1st line of markdown file: 2020/ferguson1/spoilers.md -->
|
||||
<h1 id="introduction-spoiler-alert">Introduction (SPOILER ALERT)</h1>
|
||||
<p>In the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/gameplay.html">gameplay.html</a> file I have given enough
|
||||
<p>In the <a href="gameplay.html">gameplay.html</a> file I have given enough
|
||||
information to know how the game looks, how to move the snake, how to pause etc.
|
||||
In this file I am including (some) information on how the game actually works:
|
||||
the technical details as it were, obfuscation techniques and also some of the
|
||||
@@ -710,10 +710,10 @@ refer to a <code>x</code> is possibly confusing even without the negative offset
|
||||
<p>Of course I don’t have to use negative offsets at all! I could use positive
|
||||
offsets for every time I use negative offsets. But where’s the fun in that? :)</p>
|
||||
<p>BTW: Some of these are not in the table of expressions in the
|
||||
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/HACKING.html">HACKING.html</a> file. Also there might be some
|
||||
<a href="HACKING.html">HACKING.html</a> file. Also there might be some
|
||||
code in there that is no longer correct (it was before I started
|
||||
obfuscation) though it might be able to give an idea. Spoilers abound in
|
||||
that file (in addition to this file) but the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/HACKING.html">HACKING.html</a>
|
||||
that file (in addition to this file) but the <a href="HACKING.html">HACKING.html</a>
|
||||
file states things that are no longer true: a way of obfuscation
|
||||
itself! Instead of misleading comments it’s misleading statements in the
|
||||
file that explains what some of the things are for!</p></li>
|
||||
@@ -1104,7 +1104,7 @@ the score line is updated: so the empty space will be overwritten anyway. And if
|
||||
the score line is made an empty string it doesn’t matter because it’ll appear as
|
||||
all spaces anyway. Thus I could save another three bytes by changing it to:</p>
|
||||
<pre><code> !o && q *U,*V,' ');</code></pre>
|
||||
<p>Technically it would be a <code>" "</code> (see <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/HACKING.html">HACKING.html</a>
|
||||
<p>Technically it would be a <code>" "</code> (see <a href="HACKING.html">HACKING.html</a>
|
||||
else for N (not referring to the variable though it might very
|
||||
well matter here too) movements (i.e. due to sizes) you will at times (e.g.
|
||||
after eating a bug) see the snake body char at 0,0. I’m not bothered about that
|
||||
|
||||
@@ -962,8 +962,8 @@ though because the score line is meant to display something, it squeezes a few
|
||||
more bytes and having a space is hardly an imposition on usage (and for that
|
||||
matter having a 'o' at 0,0 isn't either).
|
||||
|
||||
[gameplay.html]: %%REPO_URL%%/2020/ferguson1/gameplay.html
|
||||
[HACKING.html]: %%REPO_URL%%/2020/ferguson1/HACKING.html
|
||||
[gameplay.html]: gameplay.html
|
||||
[HACKING.html]: HACKING.html
|
||||
|
||||
|
||||
<hr style="width:10%;text-align:left;margin-left:0">
|
||||
|
||||
@@ -553,7 +553,7 @@ properly. Because that’s what funny means in this context.</p>
|
||||
<p>It’d be nice if curses could detect hitting more than one arrow key at the
|
||||
same time so that diagonal directions would be possible but unfortunately it’s
|
||||
not (<code>cat -v</code> confirms this). Even if I were to define four extra keys what
|
||||
would they be? And what about the head character? The <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/HACKING.html">HACKING.html</a>
|
||||
would they be? And what about the head character? The <a href="HACKING.html">HACKING.html</a>
|
||||
file has information on this.</p>
|
||||
<p>I also limit the terminal size to 10 lines/columns but most likely it would
|
||||
require the cheat modes to win and in any event allowing certain low values
|
||||
@@ -574,7 +574,7 @@ from a quick test this holds even with a terminal that has a white background.
|
||||
There is a way to force the background to remain white though that’s by way of
|
||||
monochrome (so no colours); I discuss that and another related terminal specific
|
||||
in the troubleshooting guide (there’s another way but it would take me over the
|
||||
iocccsize; I talk about it in the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/HACKING.html">HACKING.html</a>.</p>
|
||||
iocccsize; I talk about it in the <a href="HACKING.html">HACKING.html</a>.</p>
|
||||
<div id="monochrome">
|
||||
<h2 id="monochrome-terminals"><a href="#toc">Monochrome terminals</a></h2>
|
||||
</div>
|
||||
|
||||
@@ -410,7 +410,7 @@ you can also comment out the `init_pair()` calls.
|
||||
Perhaps you only need to add the `return;` to `C()`. My guess is that's the case
|
||||
but I do not know for certain.
|
||||
|
||||
[HACKING.html]: %%REPO_URL%%/2020/ferguson1/HACKING.html
|
||||
[HACKING.html]: HACKING.html
|
||||
[Linux keyboard and console HOWTO]: https://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO.html
|
||||
[Linux keyboard and console HOWTO section 4]: https://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO-4.html
|
||||
[snake-colours.sh]: %%REPO_URL%%/2020/ferguson1/snake-colours.sh
|
||||
|
||||
@@ -405,7 +405,7 @@ it as structured as possible/easiest to find.</p>
|
||||
</div>
|
||||
<p>Because the score line is dynamic in length depending on the terminal size it
|
||||
can happen that the score/status wraps to the next line(s). This can be fixed by
|
||||
modifying the status line (see <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/HACKING.html">HACKING.html</a> but
|
||||
modifying the status line (see <a href="HACKING.html">HACKING.html</a> but
|
||||
you shouldn’t need it to be very wide.</p>
|
||||
<ul>
|
||||
<li><p>RESOLUTION #0: Use a bigger screen (it doesn’t take that many columns)</p>
|
||||
@@ -419,7 +419,7 @@ small screen will make it harder to play esp without the cheat modes enabled
|
||||
<p>To be something like:</p>
|
||||
<pre><code> #define J Z(B:%zu\n), c);</code></pre>
|
||||
<p>Recompile and try again. That will then show only the number of bugs eaten.
|
||||
See the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/HACKING.html">HACKING.html</a> file for other data you
|
||||
See the <a href="HACKING.html">HACKING.html</a> file for other data you
|
||||
can include (though there are some discrepancies here and there as you’ll
|
||||
see).</p></li>
|
||||
</ul>
|
||||
@@ -444,7 +444,7 @@ when it does move you’ll see it doesn’t move for long.</p>
|
||||
<p>Sometimes also it might appear that the movement is delayed but there are
|
||||
numerous causes for this some of which are a busy computer but ultimately
|
||||
it’ll catch up; just give it the time it needs.</p></li>
|
||||
<li><p>BOTTOM LINE: If you want more information then see the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/bugs.html">bugs.html</a>
|
||||
<li><p>BOTTOM LINE: If you want more information then see the <a href="bugs.html">bugs.html</a>
|
||||
file.</p></li>
|
||||
</ul>
|
||||
<div id="invisiblehead">
|
||||
@@ -615,9 +615,9 @@ at least) it’s at <code>/usr/share/terminfo/6c/linux-m</code> (for macOS Ventu
|
||||
background white and the foreground black. This will of course mean you have
|
||||
no colour but unfortunately changing the background colour of curses would
|
||||
eat too many bytes in the entry (I cite the functions in the
|
||||
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/HACKING.html">HACKING.html</a>.</p>
|
||||
<a href="HACKING.html">HACKING.html</a>.</p>
|
||||
<p>I discuss colours and terminals in much more detail in
|
||||
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/terminals.html">terminals.html</a>.</p></li>
|
||||
<a href="terminals.html">terminals.html</a>.</p></li>
|
||||
</ul>
|
||||
<div id="toodark">
|
||||
<h2 id="the-text-is-hard-to-see-not-bright-enough"><a href="#toc">The text is hard to see (not bright enough)!</a></h2>
|
||||
@@ -687,7 +687,7 @@ example:</p>
|
||||
<p>is invalid input because octal only has digits 0 - 7: the resulting size will be
|
||||
0.</p>
|
||||
<p>I discuss the signed/unsigned issue to do with curses and sizes in C being
|
||||
unsigned in <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/ferguson1/bugs.html">bugs.html</a> but probably there isn’t
|
||||
unsigned in <a href="bugs.html">bugs.html</a> but probably there isn’t
|
||||
anything more to say here.</p>
|
||||
<div id="errors">
|
||||
<h2 id="errors-and-error-reporting"><a href="#toc">Errors and error reporting</a></h2>
|
||||
|
||||
@@ -464,10 +464,10 @@ Why does it show snake size as 0 when I specified 1? It's because the max size
|
||||
is 0 and I limit the size to be no bigger than the max size.
|
||||
|
||||
|
||||
[HACKING.html]: %%REPO_URL%%/2020/ferguson1/HACKING.html
|
||||
[HACKING.html]: HACKING.html
|
||||
[prog.c]: %%REPO_URL%%/2020/ferguson1/prog.c
|
||||
[bugs.html]: %%REPO_URL%%/2020/ferguson1/bugs.html
|
||||
[terminals.html]: %%REPO_URL%%/2020/ferguson1/terminals.html
|
||||
[bugs.html]: bugs.html
|
||||
[terminals.html]: terminals.html
|
||||
[snake-colours.sh]: %%REPO_URL%%/2020/ferguson1/snake-colours.sh
|
||||
[Snakey]: https://www.hp-lexicon.org/character/gaunt-family/morfin-gaunt/
|
||||
|
||||
|
||||
Reference in new issue
Block a user