render HTML after removing bold code

This commit is contained in:
Landon Curt Noll committed 2024-03-19 21:20:52 -07:00
1 parent ec6dc7187e
commit 8a8140f089
8 files changed
+51 -66

No files matched your search

+21 -20
View File
@@ -152,50 +152,51 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
and non-zero).</p>
<h3 id="variables">Variables:</h3>
<ul>
<li><p><strong><code>WAIT</code></strong><br />
<li><p><strong>WAIT</strong><br />
positive or negative integer that changes how long to wait for
a key press prior to moving again. &lt; 0 blocks which allows
for complete control over movement at your own pace. Default
231; you can move faster by holding down or rapidly pressing an
arrow key.</p></li>
<li><p><strong><code>WALLS</code></strong><br />
<li><p><strong>WALLS</strong><br />
whether the walls are passable or impassable. Default passable,
1; 0 makes walls impassable where you die if you hit a wall.</p></li>
<li><p><strong><code>EVADE</code></strong><br />
<li><p><strong>EVADE</strong><br />
how many movements the Snake moves before the bug (well
insect; see notes below about why bugs) will move to
another location in the field. Default 300; 0 disables.</p></li>
<li><p><strong><code>SIZE</code></strong><br />
<li><p><strong>SIZE</strong><br />
initial size of the Snake. Note that it grows by one per
move so at the default 5 it will not initially be 5
characters long! &lt; 0 is likely an immediate win.</p></li>
<li><p><strong><code>MAXSIZE</code></strong><br />
<li><p><strong>MAXSIZE</strong><br />
the maximum size the Snake can become before the game is
won. &lt; 0 is the maximum size based on terminal dimensions;
any other size will be capped based on the terminal
dimensions to prevent problems. Note that when <strong><code>SIZE+GROW &gt;= MAXSIZE</code></strong> you win <em>before</em> you grow to the full size!</p></li>
<li><p><strong><code>GROW</code></strong><br />
dimensions to prevent problems. Note that when <strong>SIZE+GROW &gt;=
MAXSIZE</strong> you win <em>before</em> you grow to the full size!</p></li>
<li><p><strong>GROW</strong><br />
size to grow every time you eat a bug. Default 5; negative
values are allowed. ‘Negativity’ creates for fun gameplay modes with
enough creativity. See <a href="gameplay.html">gameplay.html</a>
GitHub) as well as <a href="play.sh">play.sh</a> for some examples.</p></li>
<li><p><strong><code>SHED</code></strong><br />
every <strong><code>SHED</code></strong> movements you will grow (&gt; 0), shrink (&lt; 0) or
stay the same length (0) by the <strong><code>SHEDS</code></strong> (below) value. Again
<li><p><strong>SHED</strong><br />
every <strong>SHED</strong> movements you will grow (&gt; 0), shrink (&lt; 0) or
stay the same length (0) by the <strong>SHEDS</strong> (below) value. Again
with creativity you can create some fun gameplay modes. NOTE:
the concept of shedding in this game is a misnomer; see notes
below.</p></li>
<li><p><strong><code>SHEDS</code></strong><br />
every <strong><code>SHED</code></strong> movements will impact what this value means: grow
<li><p><strong>SHEDS</strong><br />
every <strong>SHED</strong> movements will impact what this value means: grow
(&gt; 0), shrink (&lt; 0) or not at all (0). Exception: if the snake
eats a bug the counter isn’t incremented. Again with creativity
you can create some fun gameplay modes here. For instance you
can grow upon eating a bug but shrink every <strong><code>SHED</code></strong> movements
and then it’s a battle of whether you win by <strong><code>SIZE &lt; 0</code></strong> or
<strong><code>SIZE &gt;= MAXSIZE</code></strong>. See <a href="play.sh">play.sh</a> for examples.
can grow upon eating a bug but shrink every <strong>SHED</strong> movements
and then it’s a battle of whether you win by <strong>SIZE &lt; 0</strong> or
<strong>SIZE &gt;= MAXSIZE</strong>. See <a href="play.sh">play.sh</a> for examples.
NOTE: the concept of shedding in this game is a misnomer; see
notes below.</p></li>
<li><p><strong><code>CANNIBAL</code></strong><br />
<li><p><strong>CANNIBAL</strong><br />
whether you can go through the Snake or not. Default is 0
(cannot - die if you try).</p></li>
</ul>
@@ -260,17 +261,17 @@ some features! The variables mentioned in the to run section at the top of this
file modify the behaviour of Snake.</p>
<p>Here are some other features of the game:</p>
<ul>
<li><p>A drawing/practising mode (<strong><code>WAIT</code></strong> &lt; 0 makes <code>timeout()</code> block).</p></li>
<li><p>A drawing/practising mode (<strong>WAIT</strong> &lt; 0 makes <code>timeout()</code> block).</p></li>
<li><p>Computer plays the game (<strong>WAIT=0</strong>).<br />
</p>
<ul>
<li><strong>EPILEPSY/STIMULATION OVERLOAD WARNING</strong> included in the relevant
section (this goes for a low <strong><code>EVADE</code></strong> value too).</li>
section (this goes for a low <strong>EVADE</strong> value too).</li>
</ul></li>
<li><p>Grow-Shrink mode (Positive and Negative Winning) mode (see
<a href="gameplay.html">gameplay.html</a> for more details).</p></li>
<li><p>The dimensions of the game (this is actually a terminal thing but I document
how to do this and its potential pitfalls) (<strong><code>LINES</code></strong> , <strong><code>COLUMNS</code></strong>).</p></li>
how to do this and its potential pitfalls) (<strong>LINES</strong> , <strong>COLUMNS</strong>).</p></li>
</ul>
<p>There are no complicated command line invocations; it’s just a matter of passing
into the game descriptively named variables and I include a script that sets up
@@ -482,7 +483,7 @@ a pun and every pun deserves to be shed).</p>
<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><code>SHED</code></strong> and <strong><code>SHEDS</code></strong> for simplicity and because the words are
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>