Welcome to the documentation for xdice¶

Contents:

  • Introduction
    • Presentation
    • What can it do?
      • Examples
  • Dice Notation
    • Dice
      • Bases
      • Default values
      • D% Notation
      • Selective results
      • Exploding dice
      • Fudge dice
    • Patterns
      • Repeat
    • Examples
  • Command-Line
  • API Reference
    • The dice module
      • dice.compile(pattern_string)
      • dice.roll(pattern_string)
      • dice.rolldice(faces, amount=1, drop_lowest=0, drop_highest=0)
    • Dice class
      • Dice.__init__ (sides, amount=1, drop_lowest=0, drop_highest=0)
      • Properties
      • dice.roll()
      • [classmethod] Dice.parse(cls, pattern)
    • Score class
      • Score.__new__(iterable, dropped=[], name=’‘)
      • Properties
      • score.format(verbose=False)
    • Pattern class
      • Pattern.__init__ (instr)
      • pattern.compile()
      • pattern.roll()
    • PatternScore class
      • pattern_score.scores()
      • pattern_score.format(verbose=False)

xdice

Navigation

  • Introduction
  • Dice Notation
  • Command-Line
  • API Reference

Related Topics

  • Documentation overview
    • Next: Introduction

Quick search

©2020, Olivier Massot. | Powered by Sphinx 1.8.5 & Alabaster 0.7.12 | Page source