Source

PythonDojo / BowlingWithAVengeance / bowling.py

1
2
3
4
5
6
7
STRIKE = 10
SPARE = '/'

def parse_roll(roll):
    if roll == '/':
        return '/'
    return STRIKE