Giter VIP home page Giter VIP logo

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

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

Infobox

In infobox:

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

Output framework

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

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.

Cache imports

Cache imports so they aren't loaded several times.

quick help

Quick help:

  • basic interaction
  • most used expressions
  • URL composition

Yadrol reference

  • Language reference
  • Libraries reference

On GitHub wiki if repoable.

Icons

Replace text with icons:

  • About
  • Settings
  • URL
  • Libraries
  • History

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.