Source

PythonDojo / BowlingWithAVengeance / bowling.py

Full commit
STRIKE = 10
SPARE = '/'

def parse_roll(roll):
    if roll == '/':
        return '/'
    return STRIKE
    
def frame_score(frame):
    return sum(frame)
    
def get_score(frames):
    return 14