[Pharo-users] Re: How coverage is computed with SmalltalkCI and coverall

2020-12-21 Thread Gabriel Cotelli
Just in case you don't find out, the wrapping is done in *SCICoverageWrapper* in SmalltalkCI-Coverage-Core package. If Pharo provides some native facility to calculate code coverage it should be pretty easy to adapt smalltalkCI to use it (if it will work at the method level). In case the coverage s

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

2020-12-21 Thread Roelof Wobben via Pharo-users
Op 21-12-2020 om 13:56 schreef Russ Whaley: I had a lot of fun putting my bowling game together back when you first brought this up. I have a Bowling (Game) class, a Frame class, aThrow class and a Score(ing) class.  I made the Throws a class that I put in an OrderedCollection - but instVars

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

2020-12-21 Thread Russ Whaley
I had a lot of fun putting my bowling game together back when you first brought this up. I have a Bowling (Game) class, a Frame class, aThrow class and a Score(ing) class. I made the Throws a class that I put in an OrderedCollection - but instVars would work as well... the rest of your game shoul

[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