Re: [Pharo-users] can I do something like this with Double Dispatch

2019-04-08 Thread Roelof Wobben
it is almost the same. here exercism challenge looks like this : Scoring Bowling The game consists of 10 frames. A frame is composed of one or two ball throws with 10 pins standing at frame initialization. There are three

Re: [Pharo-users] can I do something like this with Double Dispatch

2019-04-08 Thread Richard O'Keefe
Remember, we cannot see the Smalltalk exercises in exercism. We cannot help you without knowing what problem you are trying to solve. Is this problem basically the same as https://www.reddit.com/r/dailyprogrammer/comments/3ntsni/20151007_challenge_235_intermediate_scoring_a/?ref=share&ref_source=l

[Pharo-users] can I do something like this with Double Dispatch

2019-04-06 Thread Roelof Wobben
Hello, Just thinking how to solve the bowling challenge from exercism. but I wonder if I can do something like this in the method that checks if I have the right object I was thinking about this : Result -- Strike -- Spare -- allOther then InĀ  Strike something like this checkForBonus: numb