skip to navigation
skip to content

Not Logged In

diceroll 0.3

A command line dice roller

Latest Version: 2.4

diceroll is a simple command line dice roller.

It can be invoked through the roll command once installed.

Requirements

Requires the pyparsing library.

Syntax

[N]dS

A set of dice to roll, where N (optional, defaults to 1) is the number of dice to roll, and S is the number of sides the dice has.

This returns a list of dice rolls. Numerical operators that are applied to the list (such as +, -, etc) will use the sum total of the dice rolls.

X + Y, X - Y, X * Y, X / Y

Performs a basic operation on two atoms (each either a diceroll or an integer) - respectively addition, subtraction, multiplication, division.

 
File Type Py Version Uploaded on Size
diceroll-0.3.tar.gz (md5) Source 2012-08-05 1KB
  • Downloads (All Versions):
  • 91 downloads in the last day
  • 355 downloads in the last week
  • 1383 downloads in the last month