We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca4dc26 commit 3d1ce3eCopy full SHA for 3d1ce3e
2 files changed
README.rst
@@ -83,6 +83,21 @@ Usage
83
The application has been coded in Python, without using any particular
84
framework.
85
86
+To use it just import the parser:
87
+
88
+ >>> from dice_notation.parser import DiceParser
89
90
+And then use it to parser a dice notation expression:
91
92
+ >>> parser = DiceParser()
93
+ >>> dice = parser.parse('1d6+2')
94
95
+The result can be accessed just by calling the 'roll' method as many times as
96
+needed, which will generate a new random value each time it is called.
97
98
+ >>> print(dice.roll())
99
100
101
Collaborate
102
-----------
103
dice_notation/__main__.py
0 commit comments