[Pharo-users] [exercism bowling challenge] Is there a better way to do this

2020-12-21 Thread r.wobben--- via Pharo-users
Hello, To come back at this one. I made a class Bowling and a class Frame which contains two instance variables named firstThrow and secondThrow. but I still wonder how do I know which one to fill in. I can do \` (firstThrow nil?) \` but that feels not right. \ Is there a more idiomatic so

[Pharo-users] exercism bowling challenge

2020-09-21 Thread Roelof Wobben via Pharo-users
hello, I need now to make code that calculates the full score of a bowling game like one of the tests shown. test09_ConsecutiveStrikesEachGetTheTwoRollBonus     | result |     result := bowlingCalculator         scoreAfterRolling: #(10 10 10 5 3 0 0 0 0