Coder Social home page Coder Social logo

diceroll's Introduction

diceroll

Script built to roll some dice

Version 0.1
Author : Zachary Brasseaux
(C) 2019
Last Edited : 10 April, 2019

Welcome to the Dice Machine!

Usage : dice [OPTION]...[NUMBER]... Rolls the dice for you, more info below.

Options:

  • -h, --help | Displays this message
  • -c, --character | Rolls a DnD 5th Edition character
  • -p, --percent | Rolls a percent from 1% to 100%
  • -r, --roll [DIE] | Rolls a specified die

Die:

  • d2 A 2-sided die (aka a coin...)
  • d4 A 4-sided die
  • d6 A 6-sided die
  • d8 A 8-sided die
  • d10 A 10-sided die
  • d12 A 12-sided die
  • d20 A 20-sided die

Error Codes :

  • 0 : Successful execution
  • 1 : Invalid argument(s)
  • 2 : Did not provide a die to roll
  • 3 : Provided invalid die to roll
  • 4 : No arguments provided
  • 5 : Invalid number of dice to roll

Setup :

  • run setup.sh with bash setup.sh or ./setup.sh
  • additionally, you can run sudo cp ./dice.py /usr/bin/dice followed by sudo chmod 777 /usr/bin/dice. I only included the setup.sh file because some people are lazy.

diceroll's People

Contributors

zbrasseaux avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.