Skip to content

acidtone/dice-tower-vanilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Vanilla Dice Tower

Relevant journal entries

Usage

Note: work-in-progress; only logs to the console right now.

On Line 3 of /js/app.js:

  • Pass an isohedral integer x to drop() an x-sided die.
    • 6 -> random [1-6]
    • 5 -> null (not a valid die; not isohedral)
  • Pass an Array of isohedral integers n to roll and sum each n-sided die
    • [4,6,10] -> random [3-20]
    • [4,5,10] -> random [2-14] because 5 is not valid
  • Pass a string that matches rpg die notation to roll a set of like-sided dice. RegExp -> /^(\d*)d(\d+)$/
    • 2d6 -> random [2-12]
    • d4 -> random [1-4]
    • 2dTwenty -> null

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published