Giter VIP home page Giter VIP logo

roll's Introduction

roll

A simple program to roll dice for dnd\

About

Roll any number of dice and add a modifier Born out of a spur-of-the moment idea and implemented late at night :)

Installation

  • Clone the repo using git clone https://github.com/The5thAxiom/roll
  • Build the project using make
  • Roll away!

Usage

Flags

  • -n: the number of dice to roll, default is 1
  • -d: the number of faces of the dice to roll, default is 20
  • -a: the number to be added after the roll
  • -A: rolls the dice with advantage (rolls twice and takes the greater roll)
  • -D: rolls the dice with disadvantage (rolls twice and takes the lesser roll)

eg: ./roll -n 3 -d 20 -a 4, will roll 3 twenty-sided die and add 4 to the answer eg: ./roll -d 20 -a 5 -A, will roll a twenty-sided with advantage die and add 5 to the answer

String

The -n, -d and -a flags can be omitted by using a string representation of the form: [n]d[d]+[a]. Examples:

  • ./roll 3d20+4 will roll 3 twenty-sided die and add 4 to the answer
  • ./roll d10+2 -D will roll a ten-sided die with disadvantage and add 2 to the result

License

Released under the GNU GPL-3.0 license. This is Free and Open Source Software.

roll's People

Contributors

the5thaxiom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.