replace name attributes in 2020/ferguson1/README.md with spans
This commit is contained in:
1 parent
a188b77612
commit
9e7ff2ccda
2 files changed
+74
-27
No files matched your search
+38
-14
@@ -231,8 +231,7 @@ important one, chocolate cake. Most important for the cake as the formatting is
|
||||
very important.
|
||||
|
||||
|
||||
<a name="toc"></a>
|
||||
|
||||
<div id="toc">
|
||||
* ['Bugs'](#bugs)
|
||||
* [NAQs/IAQs (Never/Infrequently Asked Questions)](#naqs)
|
||||
- [Do I have any inspirations for this entry?](#inspirations)
|
||||
@@ -247,9 +246,12 @@ very important.
|
||||
|
||||
|
||||
* [Winning thoughts, dedications and thanks](#winning)
|
||||
</div>
|
||||
|
||||
|
||||
### <a name="bugs" href="#toc">'Bugs'</a>
|
||||
<div id="bugs">
|
||||
### 'Bugs'
|
||||
</div>
|
||||
|
||||
* 'The screen keeps showing bugs!' Well yes, that's rather the point! Help out
|
||||
by eating them. Keep eating them until you win! Then you will have the
|
||||
@@ -271,9 +273,13 @@ very important.
|
||||
On a more serious note look at [bugs.html](bugs.html).
|
||||
|
||||
|
||||
### <a name="naqs" href="#toc">NAQs/IAQs (Never/Infrequently Asked Questions)</a>
|
||||
<div id="naqs">
|
||||
### <a href="#toc">NAQs/IAQs (Never/Infrequently Asked Questions)</a>
|
||||
</div>
|
||||
|
||||
#### <a name="inspirations" href="#toc">Do I have any inspirations for this entry?</a>
|
||||
<div id="inspirations">
|
||||
#### <a href="#toc">Do I have any inspirations for this entry?</a>
|
||||
</div>
|
||||
|
||||
There are two in particular. First is a long time mate of mine wrote a bash
|
||||
implementation of Snake several years ago (uncoloured, no cheat modes, hardcoded
|
||||
@@ -308,7 +314,9 @@ inspired the shedding mode. Anyway I always loved the game and it's similar to
|
||||
Snake in several ways.
|
||||
|
||||
|
||||
#### <a name="features" href="#toc">Are there any features I thought of that I wanted to implement but did not get to for some reason or another?</a>
|
||||
<div id="features">
|
||||
#### <a href="#toc">Are there any features I thought of that I wanted to implement but did not get to for some reason or another?</a>
|
||||
</div>
|
||||
|
||||
Yes. I thought it would be fun if there were other obstacles for the snake (in
|
||||
my mind I was thinking of barriers like the walls but in the field).
|
||||
@@ -332,7 +340,9 @@ Nevertheless I am quite happy with the features in the game and I hope everyone
|
||||
who plays it enjoys it as much as I enjoyed writing/playing it.
|
||||
|
||||
|
||||
#### <a name="easier" href="#toc">Are there ways that one can make this game easier?</a>
|
||||
<div id="easier">
|
||||
#### <a href="#toc">Are there ways that one can make this game easier?</a>
|
||||
</div>
|
||||
|
||||
I can think of at the least the following:
|
||||
|
||||
@@ -368,7 +378,9 @@ I can think of at the least the following:
|
||||
default; does that mean it's not actually a cheat mode?).
|
||||
|
||||
|
||||
#### <a name="harder" href="#toc">Are there ways to make it harder?</a>
|
||||
<div id="harder">
|
||||
#### <a href="#toc">Are there ways to make it harder?</a>
|
||||
</div>
|
||||
|
||||
- Decrease the size of the game.
|
||||
- Decrease the size of the snake growth (and initial snake size).
|
||||
@@ -416,7 +428,9 @@ Either way I tip my proverbial snakeskin hat to you (animal cruelty but a pun is
|
||||
a pun and every pun deserves to be shed).
|
||||
|
||||
|
||||
#### <a name="moult" href="#toc">How do snakes grow in real life?</a>
|
||||
<div id="moult">
|
||||
#### <a href="#toc">How do snakes grow in real life?</a>
|
||||
</div>
|
||||
|
||||
They grow through a process called moulting - shedding their skin (other
|
||||
creatures also moult). This takes place over some days and unlike humans snakes
|
||||
@@ -425,7 +439,9 @@ variables **SHED** and **SHEDS** for simplicity and because the words are
|
||||
shorter. I don't like the words because it's rather a misnomer but what I had
|
||||
chosen before was longer - STRETCH and STRETCHES.
|
||||
|
||||
#### <a name="other" href="#toc">Any other interesting things about snakes?</a>
|
||||
<div id="other">
|
||||
#### <a href="#toc">Any other interesting things about snakes?</a>
|
||||
</div>
|
||||
|
||||
For the fascinating science behind snake slithering see [Snake walk: The physics
|
||||
of slithering][]. For the bizarre thought of snake human hybrids see [human
|
||||
@@ -434,7 +450,9 @@ in there too because I believe that people actually believe in this (how/why I
|
||||
do not know) and they really do tell the truth as they see it (even if
|
||||
impossible).
|
||||
|
||||
#### <a name="opposite" href="#toc">Why can you go the opposite direction and so immediately die when not cannibalising?</a>
|
||||
<div id="opposite">
|
||||
#### <a href="#toc">Why can you go the opposite direction and so immediately die when not cannibalising?</a>
|
||||
</div>
|
||||
|
||||
When Ilya Kurdyukov was playing with this he questioned why this is possible
|
||||
when other implementations don't have it this way. There are a few reasons.
|
||||
@@ -457,7 +475,9 @@ But if you have a problem with it you can always enable cannibalism and keep
|
||||
walls passable and not worry about dying.
|
||||
|
||||
|
||||
#### <a name="chocolatecake" href="#toc">Do you have any **DELICIOUS CHOCOLATE CAKE** recipes?</a>
|
||||
<div id="chocolatecake">
|
||||
#### <a href="#toc">Do you have any **DELICIOUS CHOCOLATE CAKE** recipes?</a>
|
||||
</div>
|
||||
|
||||
Why yes I do! So good in fact that even my late stepmum who didn't even like
|
||||
chocolate (except white chocolate) loved this cake. It's a double-layered
|
||||
@@ -489,7 +509,9 @@ been warned.
|
||||
|
||||
|
||||
|
||||
#### <a name="alt" href="#toc">What are the files prog.2.c, prog.3.c, prog.3-j.c and prog.alt.c ?</a>
|
||||
<div id="alt">
|
||||
#### <a href="#toc">What are the files prog.2.c, prog.3.c, prog.3-j.c and prog.alt.c ?</a>
|
||||
</div>
|
||||
|
||||
I submitted three Snake versions; these are the other layouts for those few
|
||||
(more likely none) who are interested to see them.
|
||||
@@ -509,7 +531,9 @@ both do.
|
||||
|
||||
## Author's dedication:
|
||||
|
||||
### <a name="winning" href="#toc">Winning thoughts, dedications and thanks</a>
|
||||
<div id="winning">
|
||||
### <a href="#toc">Winning thoughts, dedications and thanks</a>
|
||||
</div>
|
||||
|
||||
Once again I'm honoured to win along with some of the other veterans who I have
|
||||
a huge amount of respect for; there's [Don Yang](../../authors.html#Don_Yang), [Dave
|
||||
|
||||
+36
-13
@@ -330,7 +330,7 @@ unless on GitHub in which case I recommend the markdown files; this particularly
|
||||
goes for the gameplay, bugs, terminals, troubleshooting ones along with the most
|
||||
important one, chocolate cake. Most important for the cake as the formatting is
|
||||
very important.</p>
|
||||
<p><a name="toc"></a></p>
|
||||
<div id="toc">
|
||||
<ul>
|
||||
<li><a href="#bugs">‘Bugs’</a></li>
|
||||
<li><a href="#naqs">NAQs/IAQs (Never/Infrequently Asked Questions)</a>
|
||||
@@ -347,7 +347,8 @@ very important.</p>
|
||||
</ul></li>
|
||||
<li><a href="#winning">Winning thoughts, dedications and thanks</a></li>
|
||||
</ul>
|
||||
<h3 id="bugs"><a name="bugs" href="#toc">‘Bugs’</a></h3>
|
||||
</div>
|
||||
<h3 id="bugs">‘Bugs’</h3>
|
||||
<ul>
|
||||
<li><p>‘The screen keeps showing bugs!’ Well yes, that’s rather the point! Help out
|
||||
by eating them. Keep eating them until you win! Then you will have the
|
||||
@@ -365,8 +366,12 @@ took fewer bytes and the negative shedding is a positive consequence of
|
||||
unsigned arithmetic.</p></li>
|
||||
</ul>
|
||||
<p>On a more serious note look at <a href="bugs.html">bugs.html</a>.</p>
|
||||
<h3 id="naqsiaqs-neverinfrequently-asked-questions"><a name="naqs" href="#toc">NAQs/IAQs (Never/Infrequently Asked Questions)</a></h3>
|
||||
<h4 id="do-i-have-any-inspirations-for-this-entry"><a name="inspirations" href="#toc">Do I have any inspirations for this entry?</a></h4>
|
||||
<div id="naqs">
|
||||
<h3 id="naqsiaqs-neverinfrequently-asked-questions"><a href="#toc">NAQs/IAQs (Never/Infrequently Asked Questions)</a></h3>
|
||||
</div>
|
||||
<div id="inspirations">
|
||||
<h4 id="do-i-have-any-inspirations-for-this-entry"><a href="#toc">Do I have any inspirations for this entry?</a></h4>
|
||||
</div>
|
||||
<p>There are two in particular. First is a long time mate of mine wrote a bash
|
||||
implementation of Snake several years ago (uncoloured, no cheat modes, hardcoded
|
||||
dimensions etc. - in fact everything was hardcoded).</p>
|
||||
@@ -394,7 +399,9 @@ it was done in <a href="https://en.wikipedia.org/wiki/Surround_(video_game)">Sur
|
||||
<p>In <a href="https://en.wikipedia.org/wiki/Surround_(video_game)">Surround</a> each move you made you would grow in size by one. This is what
|
||||
inspired the shedding mode. Anyway I always loved the game and it’s similar to
|
||||
Snake in several ways.</p>
|
||||
<h4 id="are-there-any-features-i-thought-of-that-i-wanted-to-implement-but-did-not-get-to-for-some-reason-or-another"><a name="features" href="#toc">Are there any features I thought of that I wanted to implement but did not get to for some reason or another?</a></h4>
|
||||
<div id="features">
|
||||
<h4 id="are-there-any-features-i-thought-of-that-i-wanted-to-implement-but-did-not-get-to-for-some-reason-or-another"><a href="#toc">Are there any features I thought of that I wanted to implement but did not get to for some reason or another?</a></h4>
|
||||
</div>
|
||||
<p>Yes. I thought it would be fun if there were other obstacles for the snake (in
|
||||
my mind I was thinking of barriers like the walls but in the field).</p>
|
||||
<p>I also thought it would be fun to have more than one bug at some point after say
|
||||
@@ -411,7 +418,9 @@ character set and I didn’t see any diagonal arrows. I suppose I could have it
|
||||
not show the arrows but then that brings an old problem back.</p>
|
||||
<p>Nevertheless I am quite happy with the features in the game and I hope everyone
|
||||
who plays it enjoys it as much as I enjoyed writing/playing it.</p>
|
||||
<h4 id="are-there-ways-that-one-can-make-this-game-easier"><a name="easier" href="#toc">Are there ways that one can make this game easier?</a></h4>
|
||||
<div id="easier">
|
||||
<h4 id="are-there-ways-that-one-can-make-this-game-easier"><a href="#toc">Are there ways that one can make this game easier?</a></h4>
|
||||
</div>
|
||||
<p>I can think of at the least the following:</p>
|
||||
<ul>
|
||||
<li>Bigger screen will allow for freer movement (at least for more time?).</li>
|
||||
@@ -445,7 +454,9 @@ different combinations than I have given.</li>
|
||||
considered a filthy cheat but both modes are quite fun (one being enabled by
|
||||
default; does that mean it’s not actually a cheat mode?).</li>
|
||||
</ul>
|
||||
<h4 id="are-there-ways-to-make-it-harder"><a name="harder" href="#toc">Are there ways to make it harder?</a></h4>
|
||||
<div id="harder">
|
||||
<h4 id="are-there-ways-to-make-it-harder"><a href="#toc">Are there ways to make it harder?</a></h4>
|
||||
</div>
|
||||
<ul>
|
||||
<li>Decrease the size of the game.</li>
|
||||
<li>Decrease the size of the snake growth (and initial snake size).</li>
|
||||
@@ -491,21 +502,27 @@ chocolate cake, play Snake, sleep, … For a great recipe see below.</li>
|
||||
you make use of your talents for financial gain or at least a world record.
|
||||
Either way I tip my proverbial snakeskin hat to you (animal cruelty but a pun is
|
||||
a pun and every pun deserves to be shed).</p>
|
||||
<h4 id="how-do-snakes-grow-in-real-life"><a name="moult" href="#toc">How do snakes grow in real life?</a></h4>
|
||||
<div id="moult">
|
||||
<h4 id="how-do-snakes-grow-in-real-life"><a href="#toc">How do snakes grow in real life?</a></h4>
|
||||
</div>
|
||||
<p>They grow through a process called moulting - shedding their skin (other
|
||||
creatures also moult). This takes place over some days and unlike humans snakes
|
||||
never stop growing (though growth slows down as they mature). I chose the
|
||||
variables <strong>SHED</strong> and <strong>SHEDS</strong> for simplicity and because the words are
|
||||
shorter. I don’t like the words because it’s rather a misnomer but what I had
|
||||
chosen before was longer - STRETCH and STRETCHES.</p>
|
||||
<h4 id="any-other-interesting-things-about-snakes"><a name="other" href="#toc">Any other interesting things about snakes?</a></h4>
|
||||
<div id="other">
|
||||
<h4 id="any-other-interesting-things-about-snakes"><a href="#toc">Any other interesting things about snakes?</a></h4>
|
||||
</div>
|
||||
<p>For the fascinating science behind snake slithering see <a href="https://www.bbc.co.uk/news/science-environment-35563941">Snake walk: The physics
|
||||
of slithering</a>. For the bizarre thought of snake human hybrids see <a href="http://www.macroevolution.net/snake-human-hybrids.html">human
|
||||
snakes</a>. The latter is hard to comprehend and there are some sad tails (tales)
|
||||
in there too because I believe that people actually believe in this (how/why I
|
||||
do not know) and they really do tell the truth as they see it (even if
|
||||
impossible).</p>
|
||||
<h4 id="why-can-you-go-the-opposite-direction-and-so-immediately-die-when-not-cannibalising"><a name="opposite" href="#toc">Why can you go the opposite direction and so immediately die when not cannibalising?</a></h4>
|
||||
<div id="opposite">
|
||||
<h4 id="why-can-you-go-the-opposite-direction-and-so-immediately-die-when-not-cannibalising"><a href="#toc">Why can you go the opposite direction and so immediately die when not cannibalising?</a></h4>
|
||||
</div>
|
||||
<p>When Ilya Kurdyukov was playing with this he questioned why this is possible
|
||||
when other implementations don’t have it this way. There are a few reasons.</p>
|
||||
<p>First is that the friend’s implementation had it that way and it had been a long
|
||||
@@ -519,7 +536,9 @@ for itself but in the game it is and I went all the way instead of only halfway.
|
||||
<p>It also would take more bytes and that’s a problem with IOCCC rule 2b.</p>
|
||||
<p>But if you have a problem with it you can always enable cannibalism and keep
|
||||
walls passable and not worry about dying.</p>
|
||||
<h4 id="do-you-have-any-delicious-chocolate-cake-recipes"><a name="chocolatecake" href="#toc">Do you have any <strong>DELICIOUS CHOCOLATE CAKE</strong> recipes?</a></h4>
|
||||
<div id="chocolatecake">
|
||||
<h4 id="do-you-have-any-delicious-chocolate-cake-recipes"><a href="#toc">Do you have any <strong>DELICIOUS CHOCOLATE CAKE</strong> recipes?</a></h4>
|
||||
</div>
|
||||
<p>Why yes I do! So good in fact that even my late stepmum who didn’t even like
|
||||
chocolate (except white chocolate) loved this cake. It’s a double-layered
|
||||
chocolate fudge cake. See the file <a href="chocolate-cake.html">chocolate-cake.html</a>
|
||||
@@ -544,7 +563,9 @@ out bad! Many people have made this mistake ‘because they know better’. You
|
||||
been warned.</li>
|
||||
<li>Pay attention to the rest of the notes as well! They’re crucial.</li>
|
||||
</ul>
|
||||
<h4 id="what-are-the-files-prog.2.c-prog.3.c-prog.3-j.c-and-prog.alt.c"><a name="alt" href="#toc">What are the files prog.2.c, prog.3.c, prog.3-j.c and prog.alt.c ?</a></h4>
|
||||
<div id="alt">
|
||||
<h4 id="what-are-the-files-prog.2.c-prog.3.c-prog.3-j.c-and-prog.alt.c"><a href="#toc">What are the files prog.2.c, prog.3.c, prog.3-j.c and prog.alt.c ?</a></h4>
|
||||
</div>
|
||||
<p>I submitted three Snake versions; these are the other layouts for those few
|
||||
(more likely none) who are interested to see them.</p>
|
||||
<p>The <a href="prog.2.c">prog.2.c</a> has more digraphs but I think no other significant differences.</p>
|
||||
@@ -558,7 +579,9 @@ it’s used in both <a href="snake-colours.sh">snake-colours.sh</a> and <a href=
|
||||
first, clearing the screen, which the play.sh and snake-colours.sh scripts also
|
||||
both do.</p>
|
||||
<h2 id="authors-dedication">Author’s dedication:</h2>
|
||||
<h3 id="winning-thoughts-dedications-and-thanks"><a name="winning" href="#toc">Winning thoughts, dedications and thanks</a></h3>
|
||||
<div id="winning">
|
||||
<h3 id="winning-thoughts-dedications-and-thanks"><a href="#toc">Winning thoughts, dedications and thanks</a></h3>
|
||||
</div>
|
||||
<p>Once again I’m honoured to win along with some of the other veterans who I have
|
||||
a huge amount of respect for; there’s <a href="../../authors.html#Don_Yang">Don Yang</a>, <a href="../../authors.html#Dave_Burton">Dave
|
||||
Burton</a>, <a href="../../authors.html#Yusuke_Endoh">Yusuke Endoh</a>
|
||||
|
||||
Reference in new issue
Block a user