remove bold code
Remove markdown where test is both bold and code. This double formatting produces undesirable effects in HTML. One should make something **bold** or something `code`. but not both. The stacking of these two options produces bad effects when rendered.
This commit is contained in:
1 parent
467ad5fa9f
commit
ec6dc7187e
8 files changed
+52
-52
No files matched your search
+21
-21
@@ -28,59 +28,59 @@ and non-zero).
|
||||
|
||||
### Variables:
|
||||
|
||||
* **`WAIT`**\
|
||||
* **WAIT**\
|
||||
positive or negative integer that changes how long to wait for
|
||||
a key press prior to moving again. < 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.
|
||||
|
||||
* **`WALLS`**\
|
||||
* **WALLS**\
|
||||
whether the walls are passable or impassable. Default passable,
|
||||
1; 0 makes walls impassable where you die if you hit a wall.
|
||||
|
||||
* **`EVADE`**\
|
||||
* **EVADE**\
|
||||
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.
|
||||
|
||||
* **`SIZE`**\
|
||||
* **SIZE**\
|
||||
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! < 0 is likely an immediate win.
|
||||
|
||||
* **`MAXSIZE`**\
|
||||
* **MAXSIZE**\
|
||||
the maximum size the Snake can become before the game is
|
||||
won. < 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 **`SIZE+GROW >=
|
||||
MAXSIZE`** you win _before_ you grow to the full size!
|
||||
dimensions to prevent problems. Note that when **SIZE+GROW >=
|
||||
MAXSIZE** you win _before_ you grow to the full size!
|
||||
|
||||
* **`GROW`**\
|
||||
* **GROW**\
|
||||
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 [gameplay.html](gameplay.html)
|
||||
GitHub) as well as [play.sh](play.sh) for some examples.
|
||||
|
||||
* **`SHED`**\
|
||||
every **`SHED`** movements you will grow (> 0), shrink (< 0) or
|
||||
stay the same length (0) by the **`SHEDS`** (below) value. Again
|
||||
* **SHED**\
|
||||
every **SHED** movements you will grow (> 0), shrink (< 0) or
|
||||
stay the same length (0) by the **SHEDS** (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.
|
||||
|
||||
* **`SHEDS`**\
|
||||
every **`SHED`** movements will impact what this value means: grow
|
||||
* **SHEDS**\
|
||||
every **SHED** movements will impact what this value means: grow
|
||||
(> 0), shrink (< 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 **`SHED`** movements
|
||||
and then it's a battle of whether you win by **`SIZE < 0`** or
|
||||
**`SIZE >= MAXSIZE`**. See [play.sh](play.sh) for examples.
|
||||
can grow upon eating a bug but shrink every **SHED** movements
|
||||
and then it's a battle of whether you win by **SIZE < 0** or
|
||||
**SIZE >= MAXSIZE**. See [play.sh](play.sh) for examples.
|
||||
NOTE: the concept of shedding in this game is a misnomer; see
|
||||
notes below.
|
||||
|
||||
* **`CANNIBAL`**\
|
||||
* **CANNIBAL**\
|
||||
whether you can go through the Snake or not. Default is 0
|
||||
(cannot - die if you try).
|
||||
|
||||
@@ -158,17 +158,17 @@ file modify the behaviour of Snake.
|
||||
|
||||
Here are some other features of the game:
|
||||
|
||||
* A drawing/practising mode (**`WAIT`** < 0 makes `timeout()` block).
|
||||
* A drawing/practising mode (**WAIT** < 0 makes `timeout()` block).
|
||||
|
||||
* Computer plays the game (**WAIT=0**).\
|
||||
- **EPILEPSY/STIMULATION OVERLOAD WARNING** included in the relevant
|
||||
section (this goes for a low **`EVADE`** value too).
|
||||
section (this goes for a low **EVADE** value too).
|
||||
|
||||
* Grow-Shrink mode (Positive and Negative Winning) mode (see
|
||||
[gameplay.html](gameplay.html) for more details).
|
||||
|
||||
* The dimensions of the game (this is actually a terminal thing but I document
|
||||
how to do this and its potential pitfalls) (**`LINES`** , **`COLUMNS`**).
|
||||
how to do this and its potential pitfalls) (**LINES** , **COLUMNS**).
|
||||
|
||||
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
|
||||
@@ -432,7 +432,7 @@ a pun and every pun deserves to be shed).
|
||||
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 **`SHED`** and **`SHEDS`** for simplicity and because the words are
|
||||
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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user