1w6
Published on 1w6 (http://1w6.rakjar.de)

Startseite > Software

Software

This is a translation of the german article on 1d6 programs [1]:

We developed some Python programs for our One Die System.

  • The biggest one is a Battlefield Simulator [2]. up and running.
  • The most advanced one is a prototype for a strategy role-playing-game with small unit tactics: HexBattle [3] - including a demo-video. up and running
  • The cleanest code is found in the d6-module [4] for Python3 which implements the basic concepts of 1w6 rules. An application using the module is Ascii-Battle [5]: Battlefields in ASCII, including simulated character development with automatic specialization and character templates. up and running
  • And then there’s a small one which uses the libraries for Blob Battle: Blob Valentine [6], which was written by Drak [7] on Valentine's Day 2006 for his wife. finished
  • There is also a backend for textbased RPG's [8]. working, though currently only in the shell
  • And a script for calculating the probabilities in a battle [9]. working and used for validating the cost for weapons and skills.
  • Another one is Battle of the Blobs [10]. not finished yet, on hold.

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:

[13]

±d6 in Guile Scheme

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)))))))

Written for syncbot [16], an IRC bot for 8sync [17].


GNU General Public License v3

Das 1w6-System ist ein schlankes, frei lizensiertes, universell einsetz­bares Rollen­spielregel­werk,
das es Welten­bastlern und Spiel­leitern erleichtern soll,
ihre Welt oder Kam­pagne als Rollenspiel zu ver­öffent­lichen.

Alle Inhalte sind unter freien Lizenzen verfügbar.
Das Urheber­recht liegt bei Autorin oder Autor des jeweiligen In­haltes.
Bevor Du selbst etwas schreibst, lies bitte die Lizenz­bedingungen.

Diese Seite nutzt für ihr Funktionieren notwendige Cookies (und nur die). Und Bilder. Manchmal auch Text. Eins davon müssen wir erwähnen…

Druckversion

Source URL (retrieved on 2025-05-18 19:55): http://1w6.rakjar.de/forum/english/general/2014-09-22-software-710

Links:
[1] http://1w6.org/node/109
[2] http://1w6.rakjar.de/schlachtfeld
[3] http://1w6.rakjar.de/deutsch/anhang/programme/hexbattle-mit-zombies
[4] http://1w6.rakjar.de/deutsch/anhang/programme/ascii-battle-1w6-modul-fuer-python3-d6#nutzen
[5] http://1w6.rakjar.de/deutsch/anhang/programme/ascii-battle-1w6-modul-fuer-python3-d6
[6] http://1w6.rakjar.de/a href=
[7] http://1w6.rakjar.de/uzanto/drak
[8] http://1w6.rakjar.de/deutsch/anhang/programme/textrpg
[9] http://1w6.rakjar.de/deutsch/anhang/programme/kampfchancen-baum-skript
[10] http://1w6.rakjar.de/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] http://1w6.rakjar.de/w6
[15] http://gnu.org/s/guile
[16] https://identi.ca/cwebber/note/3Bh6IbvTQ4-xBdtN2LXcbQ
[17] https://notabug.org/cwebber/8sync