lifelike / decide-mode

Random decisions for emacs, with functions and a minor mode. Roll various types of dice etc.
49 stars 12 forks source link

Add weighted tables #7

Closed dustinlacewell closed 6 years ago

dustinlacewell commented 6 years ago

Addresses #6. Table entries can now be a cons cell featuring a numeric weight value as the cdr. The dragon example shows how that works. Any entries not featuring a weight are considered to have weight of 1.

lifelike commented 6 years ago

Looks great! I will find some time this weekend to look closer. Make sure you add yourself as a contributor somewhere in the text.

lifelike commented 6 years ago

A seq-reduce for emacs24 would be nice. Not all my computers run emacs25 and I guess I am not alone.