Git Product home page Git Product logo

roll's Introduction

Roll

A simple command line tool to roll dice.

powered%20by Kotlin darkviolet powered%20by Clikt violet powered%20by Mordant red powered%20by Nyx blue

Installation

  1. Clone the respository.

  2. Run ./gradlew installDist. This will install a distribution to the folder build/install/roll in the repository.

  3. Call the script build/install/roll/bin/roll and pass the dice you want to roll (see Usage below).

  4. As the full path to the script is rather cumbersome to write all the time, I suggest you create a symbolic link to the script somewhere on your PATH.

Usage

To roll one or multiple dice you simple call the command line tool and pass the number and dice type as arguments in the following notation:

Notation Description

d6

Rolls one six sided dice

1d6

Rolls one six sided dice

3d8

Rolls three eight sided dice

Roll is not limited to regular dice like d4, d6, d8, d10, d12, d20, d100. Roll will also accept other dice like d2, d3, d5, d17, d7631, and so on.

Roll also accepts multiple arguments. For example, to roll multiple dice of different types: roll 3d6 1d10.

roll's People

Contributors

harmenweber 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.