improved indentation and whitespace for markdown code blocks
All code blocks in markdown have been intended by at least 4 spaces. We add `--tab-stop=8` to all `pandoc(1)` executions in order to set a better tab stop indentation, especially for tab intended code blocks. Changed `bin/pandoc-wrapper.sh` VERSION from "1.5.3 2024-03-26" to "1.6 2024-03-31". Fixed `1991/brnstnd/sorta.README.md` so that the sorta code is code blocks. Removed unneeded paragraph group in copyright in `inc/footer.default.html`. Fixed excess whitespace after list Author on entry `index.html` page. Changed `bin/output-index-author.sh` VERSION from "1.5.2 2024-03-26" to "1.6 2024-03-31". Performed `make www` to perform the above and test under macOS. TODO: Fix the problem of the initial line of code being extra intended. TODO: Fix excess whitespace around code that is inline.
This commit is contained in:
1 parent
b84c27ce02
commit
a996f8d2b8
734 files changed
+16723
-16963
No files matched your search
+27
-27
@@ -1,7 +1,7 @@
|
||||
## To build:
|
||||
|
||||
```sh
|
||||
make
|
||||
make
|
||||
```
|
||||
|
||||
There is an alternate version provided by the author. See [Alternate
|
||||
@@ -11,24 +11,24 @@ code](#alternate-code) below.
|
||||
## To use:
|
||||
|
||||
```sh
|
||||
# IMPORTANT for macOS: run under Terminal.app
|
||||
# IMPORTANT for macOS: run under Terminal.app
|
||||
|
||||
./prog
|
||||
./prog
|
||||
```
|
||||
|
||||
|
||||
## Try:
|
||||
|
||||
```sh
|
||||
# IMPORTANT for macOS: run under Terminal.app
|
||||
# IMPORTANT for macOS: run under Terminal.app
|
||||
|
||||
# Try resizing the terminal window before the first click.
|
||||
# Try resizing the terminal window before the first click.
|
||||
|
||||
# Try resizing the terminal window after the first click.
|
||||
# Try resizing the terminal window after the first click.
|
||||
|
||||
./prog ioccc.txt
|
||||
./prog ioccc.txt
|
||||
|
||||
./prog unwinnable.txt
|
||||
./prog unwinnable.txt
|
||||
```
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ Author's remarks for more details.
|
||||
### Alternate build:
|
||||
|
||||
```sh
|
||||
make alt
|
||||
make alt
|
||||
```
|
||||
|
||||
|
||||
@@ -95,8 +95,8 @@ All you have to do is (0). You can test if you are lucky or not.
|
||||
It uses ncurses:
|
||||
|
||||
```sh
|
||||
gcc -o prog prog.c -lncurses
|
||||
./prog
|
||||
gcc -o prog prog.c -lncurses
|
||||
./prog
|
||||
```
|
||||
|
||||
You will see a terminal-wide field of a minesweeper. Probe a cell by mouse
|
||||
@@ -127,9 +127,9 @@ unprobed neighbors are probed.
|
||||
Example:
|
||||
|
||||
```
|
||||
? ? ? . . .
|
||||
? 3 ? => . 3 .
|
||||
! ! ! ! ! !
|
||||
? ? ? . . .
|
||||
? 3 ? => . 3 .
|
||||
! ! ! ! ! !
|
||||
```
|
||||
|
||||
Note that `?` is an unprobed cell (it is unknown whether the cell has a mine or
|
||||
@@ -145,9 +145,9 @@ neighbors, all the unprobed neighbors are flagged.
|
||||
Example:
|
||||
|
||||
```
|
||||
. ? ? . ! !
|
||||
. 4 ? => . 4 !
|
||||
. 2 ! . 2 !
|
||||
. ? ? . ! !
|
||||
. 4 ? => . 4 !
|
||||
. 2 ! . 2 !
|
||||
```
|
||||
|
||||
#### Rule 3:
|
||||
@@ -159,10 +159,10 @@ neighbors, all `A`'s unprobed neighbors that are not `B`'s neighbors are probed.
|
||||
Example:
|
||||
|
||||
```
|
||||
? ? ? . . .
|
||||
? 1 ? ? => . 1 ? ?
|
||||
? ? 4 . . ? 4 .
|
||||
? . ! ? . !
|
||||
? ? ? . . .
|
||||
? 1 ? ? => . 1 ? ?
|
||||
? ? 4 . . ? 4 .
|
||||
? . ! ? . !
|
||||
```
|
||||
|
||||
`A` and `B` are probed cells whose numbers are, respectively, 1 and 4. The
|
||||
@@ -179,9 +179,9 @@ neighbors, all of `A`'s unprobed neighbors that are not `B`'s neighbors are
|
||||
flagged.
|
||||
|
||||
```
|
||||
? ? ? ? ! ? ? ?
|
||||
? 3 1 2 => ! 3 1 2
|
||||
2 2 . . 2 2 . .
|
||||
? ? ? ? ! ? ? ?
|
||||
? 3 1 2 => ! 3 1 2
|
||||
2 2 . . 2 2 . .
|
||||
```
|
||||
|
||||
`A` and `B` are probed cells whose numbers are, respectively, 3 and 1. The
|
||||
@@ -201,13 +201,13 @@ Analyze the code.
|
||||
You can also play with a prepared map.
|
||||
|
||||
```sh
|
||||
./prog ioccc.txt
|
||||
```
|
||||
./prog ioccc.txt
|
||||
```
|
||||
|
||||
The format of the text is:
|
||||
|
||||
```
|
||||
width height number-of-mines priorities-of-each-cell...
|
||||
width height number-of-mines priorities-of-each-cell...
|
||||
```
|
||||
|
||||
There are mines in a cell whose "priorities-of-each-cell" is less than
|
||||
|
||||
Reference in new issue
Block a user