This is a translation of the german article on 1d6 programs [1]:
We developed some Python programs for our One Die System.
You can watch the development in some Mercurial repositories on BitBucket [11]. LIVE!
Some additional informations and code statistics are available on ohloh.org [12], which is also where the following mini-statistics originate:
Just for fun: This implements the ±d6 [14] in Guile Scheme [15], including critical rolls.
(define* (roll-1d6) (let* ((numbers '(-5 -3 -1 2 4 6)) (rolld6 (lambda () (list-ref numbers (random 6))))) (let rolling ((rolled (cons (rolld6) '()))) (cond ((and (= 1 (length rolled)) (member (car rolled) '(-5 6))) (rolling (cons (rolld6) rolled))) ((and (> (length rolled) 1) (equal? (car rolled) (car (cdr rolled)))) (rolling (cons (rolld6) rolled))) ((= 1 (length rolled)) (car rolled)) (else (apply + (cdr rolled)))))))
Links:
[1] http://1w6.org/node/109
[2] https://www.1w6.org/schlachtfeld
[3] https://www.1w6.org/deutsch/anhang/programme/hexbattle-mit-zombies
[4] https://www.1w6.org/deutsch/anhang/programme/ascii-battle-1w6-modul-fuer-python3-d6#nutzen
[5] https://www.1w6.org/deutsch/anhang/programme/ascii-battle-1w6-modul-fuer-python3-d6
[6] https://www.1w6.org/a href=
[7] https://www.1w6.org/uzanto/drak
[8] https://www.1w6.org/deutsch/anhang/programme/textrpg
[9] https://www.1w6.org/deutsch/anhang/programme/kampfchancen-baum-skript
[10] https://www.1w6.org/deutsch/anhang/programme/blob_battle
[11] http://bitbucket.org/ArneBab/
[12] http://ohloh.org
[13] https://www.openhub.net/p/rpg-1d6?ref=sample
[14] https://www.1w6.org/w6
[15] http://gnu.org/s/guile
[16] https://identi.ca/cwebber/note/3Bh6IbvTQ4-xBdtN2LXcbQ
[17] https://notabug.org/cwebber/8sync