Skip to content

Commit ca4dc26

Browse files
committed
Added a sample executable
1 parent 2c4c71b commit ca4dc26

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

dice_notation/__main__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@
44

55
if __name__ == '__main__':
66
parser = DiceParser()
7+
while 1:
8+
try:
9+
s = raw_input('Dice notation > ')
10+
except EOFError:
11+
break
12+
if not s:
13+
continue
14+
15+
print('Rolled {}'.format(parser.parse(s).roll()))

0 commit comments

Comments
 (0)