summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/nimsticks
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-07-12 20:03:01 +0000
committerKarl Berry <karl@freefriends.org>2020-07-12 20:03:01 +0000
commit50753c1a6a9ab86deab3775588d09f740bf0f94c (patch)
tree2b7a501dddafb7cc2a28befdadd5a8f2a47adc7b /Master/texmf-dist/doc/latex/nimsticks
parent8e237c3f52a9a653972fc117404b1f94d79a26c3 (diff)
nimsticks (12jul20)
git-svn-id: svn://tug.org/texlive/trunk@55821 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/nimsticks')
-rw-r--r--Master/texmf-dist/doc/latex/nimsticks/README.md19
-rw-r--r--Master/texmf-dist/doc/latex/nimsticks/nimsticks.pdfbin0 -> 75196 bytes
2 files changed, 19 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/nimsticks/README.md b/Master/texmf-dist/doc/latex/nimsticks/README.md
new file mode 100644
index 00000000000..7a295a2a75b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/nimsticks/README.md
@@ -0,0 +1,19 @@
+# nimsticks: LaTeX package for drawing Nim sticks and games
+
+nimsticks is a package for LaTeX that should also work with LuaTeX and XeTeX, that draws sticks for representating games of multi-pile Nim.
+
+By [Peter Rowlett](https://github.com/prowlett/).
+
+## Background
+
+Nim objects could be anything, of course, but conventionally sticks or stones are used. There are various types of dot in LaTeX that might look like stones, but somehow a line of dots didn't seem satisfactory. There are various ways to draw a line (e.g. just typing IIIII), including some tally markers (e.g. in hhcount). My problem with these (call me picky) is that they are all identical lines, and a `heap' of them just looks very organised. Really, I want a set of lines that looks like someone just threw them into heaps (though probably without crossings for the avoidance of ambiguity).
+
+The way this works is it draws a thick vertical line in TikZ with a little wobble added so each one doesn't look extremely well-lined-up with its neighbour, achieved by adding or subtracting a small random number to the top and bottom coordinate.
+
+It does this by providing two commands:
+
+- `\drawnimstick`: draws a single Nim stick with a little random wobble;
+- `\nimgame`: takes a comma-separated list of numbers and draws a line of Nim heaps holding those number of sticks.
+
+## Licensing
+This work may be distributed and/or modified under the conditions of the [MIT license](LICENSE.txt).
diff --git a/Master/texmf-dist/doc/latex/nimsticks/nimsticks.pdf b/Master/texmf-dist/doc/latex/nimsticks/nimsticks.pdf
new file mode 100644
index 00000000000..ea9bfc60000
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/nimsticks/nimsticks.pdf
Binary files differ