Git Product home page Git Product logo

diceroller.net's Introduction

DiceRoller.Net

Build Status

A .Net dice roller based on the Irony language kit.

Features

Feature Example
Arithmetic (67 + 54 - 20)/15
Dice rolling d4
3d6+2
Exploding dice 3d6!
Combo (3d10 + 5) * d7 / 2 - 1d2!
Comments 1d6+8 # Orc's Damage
Minimum roll outcome min(d10-4,1)
Repeat rolls repeat(d10, 5)
Custom Command Description
backfire Generates a DQ Backfire result
injury Generates a DQ Grievous Injury
fear Generates a DQ Fear Result
help Usage details
spelldmg Displays spell detail, with dmg at specified rank
skill Displays skill detail, with roll calculations
save Saves an alias for the instructions, for user

REPL

> d4
1 Reason: [1]

> 3d6
9 Reason: [1, 4, 4]

> 3/4
0.75 Reason: 3 / 4

> (3d10 + 5) / 2 + 1d2!
14.5 Reason: [9, 4, 5] + 5 / 2 + [2!, 1]

> 3d100 < 55  OR should this be: repeat(d100 < 55, 3) ???
2 successes Reason: [45, 87, 22]

> 3d10 > 55 OR alternate - need to decide which one
1 successes Reason: [45, 87, 22]

> min(d10-4,1) + 5
6 Reason: [2]-4 = -2, min 1 => 1 + 5

> repeat(d10,6)
24 Reason: [1] [2] [6] [1] [9] [5]

> backfire
32 Reason: The Adept becomes the target of the spell with some or all effects doubled.

> injury
99 Reason: Crushing blow to your pelvis breaks bone and tears tissue. Take 7 Damage Points immediately to Endurance and fall prone. Make a WP check to avoid falling unconscious. If you survive, you will be unable to move for D10 months.

TODO

Add --help support

diceroller.net's People

Contributors

edouglas-laybuy avatar jasonkstevens avatar

Watchers

 avatar Ed Douglas avatar

Forkers

billdoornz

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.