Skip to main content

A command line dice roller

Project description

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.

Project details


Release history Release notifications

History Node

2.5

History Node

2.4

History Node

2.3

History Node

2.1

History Node

2.0

History Node

1.2

History Node

1.1

History Node

1.0

History Node

0.5

History Node

0.4

This version
History Node

0.3

History Node

0.2

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
diceroll-0.3.tar.gz (1.3 kB) Copy SHA256 hash SHA256 Source None Aug 5, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page