https://github.com/eylles/recursive-dice
a ridiculous recursive dice roller in posix shell
https://github.com/eylles/recursive-dice
awful dice-roller dnd posix posix-sh shell shell-script
Last synced: 11 months ago
JSON representation
a ridiculous recursive dice roller in posix shell
- Host: GitHub
- URL: https://github.com/eylles/recursive-dice
- Owner: eylles
- License: gpl-3.0
- Created: 2020-06-11T11:19:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T05:55:35.000Z (almost 6 years ago)
- Last Synced: 2025-01-10T11:47:07.727Z (over 1 year ago)
- Topics: awful, dice-roller, dnd, posix, posix-sh, shell, shell-script
- Language: Shell
- Size: 344 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Recursive Dice
This script is a really awful way to write a dice roller in posix compliant shell tha can parse dnd dice notation.
## Install
```
git clone https://github.com/eylles/recursive-dice
cd recursive-dice
chmod +x ./install.sh
./install.sh
```
The install script will locate the script in the $HOME/.local/bin/ directory and add it to PATH in .bashrc IF it ain't already added to PATH in your system, if you have a different dedicated scripts directory already added to PATH just go there in a terminal and run:
```
wget https://raw.githubusercontent.com/eylles/recursive-dice/master/rolld
chmod +x rolld
```
## How To Use
just open a terminal and run rolld like
```
rolld 3d6
```
this will rolld 3 dice each with 6 sides
```
rolld 3d6 +3
```
this will rolld again 3 dice each with 6 sides but will add 3 to each side
## Okay, but why tho?
at first it was "muh posix" meme, then it was "muh minimalism", then it was didactic but at the end this terrible thing was definitely driven by self hate, otherwise i would had stopped at using a while loop...