Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Dice Rolling App

React app for quick dice rolls when players outnumber the available dice.

Development

This project uses pnpm. Enable Corepack once if pnpm is not already available:

corepack enable
pnpm install
pnpm dev

Checks

pnpm build
pnpm test
pnpm lint
pnpm format:check
  • Randomise Rolls
  • Reduce Rolls to Total
  • Present all information on to the screen (covering rolling with advantage/disadvantage)
  • style it better
  • Remove iOS Safari zoom in to focused element

Rolling

  • Roll 1–10 dice, with an optional whole-number modifier from -1000 to 1000.
  • D20 advantage and disadvantage keep one of two dice, then apply the modifier once.
  • D100 rolls use tens and units; 00 and 0 count as 100.
  • Roll again repeats the latest result’s settings. Recent rolls keeps the last 10 rolls until you refresh or clear the history.
  • Switching to a single check preserves your normal dice quantity.

The calculation tests run with Vitest. Use pnpm test for a single run or pnpm test:watch to rerun tests as you edit.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages