summaryrefslogtreecommitdiff
path: root/sys/games
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2019-11-03 13:49:23 +0000
committeraiju <devnull@localhost>2019-11-03 13:49:23 +0000
commitae61eb9381f6b0c70e1c52bf2c2b7f4cd0b5bb6f (patch)
treec62b500d4d8714e56cdb7153fcbc3ab328aa0e76 /sys/games
parent37827f533bcfe73d8aff7088fbeee1eaa42e8094 (diff)
add games/linden and games/turtle
Diffstat (limited to 'sys/games')
-rw-r--r--sys/games/lib/linden/sierpinski7
-rw-r--r--sys/games/lib/linden/tree9
2 files changed, 16 insertions, 0 deletions
diff --git a/sys/games/lib/linden/sierpinski b/sys/games/lib/linden/sierpinski
new file mode 100644
index 000000000..393b349a6
--- /dev/null
+++ b/sys/games/lib/linden/sierpinski
@@ -0,0 +1,7 @@
+A
+A: B-A-B
+B: A+B+A
+A = 'draw 1'
+B = 'draw 1'
++ = 'turn -60'
+- = 'turn 60'
diff --git a/sys/games/lib/linden/tree b/sys/games/lib/linden/tree
new file mode 100644
index 000000000..59cf82428
--- /dev/null
+++ b/sys/games/lib/linden/tree
@@ -0,0 +1,9 @@
+0
+1: 11
+0: 1[0]0
+0 = 'draw 0.2'
+1 = 'draw 0.4'
+[ = 'push
+turn -45'
+] = 'pop
+turn 45'