• ###### yuleresolved a question on "Simple Baseball Score Calculator" kata

You're correct - that is contradictory. I've corrected the problem statement to be consistent with actual baseball rules. i.e. that the runner on 2nd will not advance unless he is 'forced' i.e. a runner on first pushes him.
Thanks for spotting that.

• ###### mortonfoxcreated a question for "Simple Baseball Score Calculator" kata

I had no understanding of baseball scoring before this kata so it is very possible that I'm misreading/misinterpreting the kata description. I am confused by two seemingly contradictory statements in the description.

Under "Subsequent Batters":

a batter on 2nd base with no one on 1st base will NOT advance on a walk.

However in the example:

B,B,B,B: The next batter is walked and reaches first base. The runner on 2nd base advances to third base.

There was no one on 1st base before the walk began, yet the runner on 2nd base advanced. So which one is correct? This is unclear to me.

• ###### Voileresolved an issue on "Simple Baseball Score Calculator" kata

It looks fixed now. Probably when the issue was posted it was still running an old version of text fixture. (This actually happens fairly often ;-))

• ###### yulecommented on "Simple Baseball Score Calculator" kata

Could you offer me an example? I'm unsure how this could be exploited.

• ###### yuleresolved an issue on "Simple Baseball Score Calculator" kata

Fair point, have added an explicit test.
Added additional random tests with better distribution i.e. a S happens more than a hit etc

• ###### Voilecreated an issue for "Simple Baseball Score Calculator" kata

Tests are very weak on the handling on `F`. Not correctly handling `F` at 2 strikes still passes the random tests fairly often.

• ###### Voilecommented on "Simple Baseball Score Calculator" kata

Note: in Ruby, strings are mutable.

Alternatively, compute expected value before actual value (and make sure the reference solution don't mutate the input).

• ###### rowcasedcreated an issue for "Simple Baseball Score Calculator" kata

This comment is hidden because it contains spoiler information about the solution

• ###### yuleresolved an issue on "Simple Baseball Score Calculator" kata

Thank you, again.
Very specific edge case caused by a typo. Added as specific test.

• ###### rowcasedcreated an issue for "Simple Baseball Score Calculator" kata

This comment is hidden because it contains spoiler information about the solution

• ###### yuleresolved an issue on "Simple Baseball Score Calculator" kata

Thank you. Resolved.

• ###### rowcasedcreated an issue for "Simple Baseball Score Calculator" kata

From random tests:

``````./spec/solution_spec.rb:22:in `block (3 levels) in <top (required)>': uninitialized constant YuleSolution (NameError)
``````