Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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)

This comment has been minimized.

Copy link

@isene 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
You can’t perform that action at this time.