Skip to content

Instantly share code, notes, and snippets.

@gustafe
Created May 19, 2020 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustafe/2e0b6e32da235ce0f5979a3ff720a407 to your computer and use it in GitHub Desktop.
Save gustafe/2e0b6e32da235ce0f5979a3ff720a407 to your computer and use it in GitHub Desktop.
O6 in Perl test output
r=1 d=6 t=5 m=1
r=2 d=7 t=6 m=0
r=3 d=8 t=2 m=1
score=8 after 3 rolls
r=1 d=1 t=2 m=1
r=2 d=0 t=6 m=0
score=0 after 2 rolls
r=1 d=6 t=4 m=1
r=2 d=7 t=1 m=0
score=7 after 2 rolls
r=1 d=6 t=6 m=1
r=2 d=7 t=5 m=1
r=3 d=8 t=2 m=0
score=8 after 3 rolls (critical)
r=1 d=1 t=1 m=1
r=2 d=0 t=4 m=1
score=0 after 2 rolls (fumble)
@isene
Copy link

isene commented May 20, 2020

I don't really understand the output here.
The eventual output would be in lines with "3", "6", "8 Critical" (meaning a 6 was rolled and then a 4-6, then a 4-6 and then a 1-3 with two consecutive 6s rolled along the way) or "0 Fumble" (here two 1s must have been rolled).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment