Giter Site home page Giter Site logo

rbossy / yadrol Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 1.9 MB

Yadrol is a dice roller and dice distribution sampler

Home Page: https://rbossy.github.io/yadrol

License: MIT License

JavaScript 72.64% HTML 2.49% CSS 23.26% Makefile 0.01% Yacc 1.58% Python 0.03%
rpg-dice-roller dice-roller dice-notation roll-dice rpg-tool tabletop tabletop-gaming tabletop-rpgs tabletop-games

yadrol's Introduction

Yadrol

Yadrol simulates dice rolling and presents roll results or calculates the distribution of rolling dice many times. Yadrol is designed for tabletop role playing games and boardgames enthousiasts that want to study existing dice mechanics or that want to create new mechanics.

You can play with Yadrol right now!

Features

  • Flexible dice mechanics language
  • Self-contained help: a tutorial for the application, quick help and reference for the Yadrol language,
  • Library: most common dice mechanics,

License

Yadrol is an Open Source software distributed under the MIT license.

Deploy

git clone https://github.com/phatonin/yadrol.git
cd yadrol
./server.py

In a browser, open the address http://localhost:8000/.

The server.py script requires Python >= 2.7, though you can use any other HTTP server to expose the directory: Apache, Node's http-server, Jekyll...

Be careful not to expose your .git/ directory since it may contain sensitive information.

Contribute

Use GitHub's issues to ask for help, suggestions, feature requests, or just praises to the author.

yadrol's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

yadrol's Issues

Yadrol reference

  • Language reference
  • Libraries reference

On GitHub wiki if repoable.

quick help

Quick help:

  • basic interaction
  • most used expressions
  • URL composition

Output framework

  • Create structure where outputs are recorded.
  • Distribution objects.
  • Implement roll, sample and output expressions.

Infobox

In infobox:

  • link to github
  • credit jquery, bootstrap, plottablejs, and icons
  • contact

Icons

Replace text with icons:

  • About
  • Settings
  • URL
  • Libraries
  • History

Cache imports

Cache imports so they aren't loaded several times.

Parse query in URL

The query part of the URL could contain parameters for:

  • expression string
  • run the string
  • options: output mode, graph Y, graph centrum

Check for output expression without evaluating

Currently the application evaluates the last expression to check for output.

This causes problems when there are side effects in the last expression.

This could be avoided with a Expression#hasOutput() method.

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.