https://github.com/opensourcedoc/d20-c
DnD (Dragons and Dungeons) style dice simulation
https://github.com/opensourcedoc/d20-c
c console-application dice-roller dungeons-and-dragons
Last synced: about 1 year ago
JSON representation
DnD (Dragons and Dungeons) style dice simulation
- Host: GitHub
- URL: https://github.com/opensourcedoc/d20-c
- Owner: opensourcedoc
- License: mit
- Created: 2018-07-14T21:47:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-01T12:20:17.000Z (over 4 years ago)
- Last Synced: 2025-02-24T10:35:46.709Z (over 1 year ago)
- Topics: c, console-application, dice-roller, dungeons-and-dragons
- Language: C
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# d20
A small console program to demo how to implement DnD (Dragons and Dungeons) style dices in C.
## System Requirements
* A C compiler that implements C99
* GNU Make
## Usage
`d20` default to `1d6`:
```
$ d20
3
```
You may roll different dice by applying different string:
```
$ d20 "1d8+1"
```
Alternatively, roll with command line arguments, like `2d6+2`:
```
$ d20 -r 2 -d 6 -m 2
```
## Copyright
Copyright (c) 2018 Michelle Chen. Licensed under MIT