bowling kata first attempt

Can you write this with a for loop?