Debian Codegraph @

README

raw
1 rolldice is just a simple program that rolls an amount of virtual dice of
2 any size. Well, technically, all the attributes of the dice can't exceed
3 SHRT_MAX, but I think it suffices for any normal FRPG.
4
5 rolldice is a simple program, trying to uphold the UNIX philosophy of doing
6 one thing, and doing that thing well. However, this is not a claim that
7 rolldice cannot be improved, only that I am satisfied with it, as of right
8 now... of course, any improvements will be accepted gladly!
9
10
11 COMPILING
12
13 Compiling rolldice requires the development files of the GNU readline library.
14
15
16 HISTORY
17
18 1999.1.27
19
20 I've had a request to add /dev/(u)random as random number input, and so
21 I've added the capability to use the random number devices as random input.
22 The -u option gives you /dev/urandom, and the -r /dev/random.
23
24 1999.2.12
25
26 I know I've been a little late in adding some new features, and I apologize,
27 but I'm sure you understand, college and all... anyway, there are two new
28 features in this version of rolldice: A default for the number of dice to
29 roll (so that strings like "d6" are possible now), and the ability to use
30 "d%" as a percentage roll (rolls d100). You can also use strings like
31 "#d%" to roll # percentage dice at once.
32
33 1999.3.10
34
35 New in this release is the ability to print out each separate die roll.
36 When using this feature, you get the following output:
37
38 [sstrickl@midkemia]:~$ rolldice -s 3d6
39 Roll #1: 2 4 2 = 8
40 [sstrickl@midkemia]:~$ rolldice -s 2x3d6
41 Roll #1: 5 2 6 = 13
42 Roll #2: 1 6 2 = 9
43
44 Easy? I thought so! :)
45
46 1999.3.27
47
48 I still haven't put in the option to allow multiple dice strings on the
49 command line. However, I *have* added the ability to drop a number of
50 lowest die rolls. This is for all those other methods of rolling characters
51 under AD&D, and I'm sure other gaming systems use this sometimes ;)
52
53 Also, /dev/urandom has been made the default random number generator, and
54 the use of rand() has been dropped. If you wish this method to be added
55 back to rolldice, just contact me and I'll do so.
56
57 1999.3.28
58
59 I made the parser code much cleaner... this won't really affect the use of
60 the program, except now you can kinda shuffle sections around. They will
61 still be resolved in the same order as before, however, so:
62
63 [sstrickl@midkemia]:~$ rolldice -s 3d6-1*10
64
65 results in:
66
67 Roll #1: (3 5 2) * 10 - 1 = 99
68
69 not:
70
71 Roll #1: ((3 5 2) - 1) * 10 = 90
72
73 It's not quite that smart, sadly.
74
75 And also, finally, at long last, I've added the ability to use multiple dice
76 strings! Woohoo! So this means that unless I find or am asked to add a new
77 method to the dice string itself, this might be the last release of diceroll,
78 unless I actually do rewrite it to make it neater, find a cleaner parser
79 implementation, or just get bored and decide to add something else...
80
81 2010.2.1
82
83 Changing the URL/email at the bottom of this file, both of which are outdated
84 since I left Georgia Tech.
85
86 2012.5.4
87
88 Cleaning up this README a bit (or destroying history, however you want to
89 look at it) to get it ready for posting at Github. Maybe one day I'll come
90 back to it and clean it up as much as it needs, but I'm not optimistic.
91
92 2012.6.7
93
94 Thanks to Stéphane Blondon, there have been a few improvements in rolldice,
95 including the ability to pipe input from standard input. Thanks for your
96 contributions!
97
98 2012.8.5
99
100 Stéphane found a regression where subtraction was handled the same as plus,
101 so that's fixed in this newest release.
102
103 2012.12.18
104
105 Stéphane changed the error handling from following stdlib conventions to
106 BSD (sysexits.h) conventions.