ianfhunter / GNOLL

GNOLL is an efficient dice notation parser for multiple programming languages that supports a wide set of dice notation
https://www.ianhunter.ie/GNOLL/
GNU General Public License v3.0
39 stars 23 forks source link

Add a Python command-line interface #441

Closed Kodiologist closed 9 months ago

Kodiologist commented 9 months ago

Description

How Has This Been Tested

So far, just by trying it. If you like it, I can add real tests to this PR.

Unrelated, but I noticed that the syntax in the documentation doesn't match what is actually tested for rerolling (documented as 1d20r#1, implemented as 1d20r==1) and macro calls (documented as #PLANETS, implemented as @PLANETS). Also, gnoll.roll('1d6', builtins = True, mock = 1) segfaults.

Change Type

Checklist