An open API service indexing awesome lists of open source software.

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

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