Ad
  • Default User Avatar

    In cricket, you cannot score after 10 wickets have fallen.

    [0, 'W', 'W', 'w', 3, 'nb', 'W', 2, 'W', 'W', 'W', 1, 'nb', 4, 0, 3, 0, 1, 1, 3, 5, 3, 'W', 1, 0, 1, 'nb', 4, 'nb', 5, 'nb', 'W', 5, 1, 2, 2, 'W', 1, 'nb', 0, 'w', 3, 'W', 4, 4, 'w', 2, 'w']

    '71/10 from 6.2'

  • Custom User Avatar

    I think a more clear description is needed
    The requirements for this kata are hard to understand especially for some who knows nothing about cricket

  • Custom User Avatar

    Might make the task more interesting to add scoring off no balls/wides and (leg) bys? Right now you're testing a kinda weird subset of cricket scoring.

  • Default User Avatar

    Thx! - corrected

  • Custom User Avatar

    Small note but fractional overs only go up to .5, 1 over 6 balls is 2 overs.

  • Custom User Avatar

    Description is in horrible shape with a lot of requirements in the wrong order or not presented clearly

    • runs/wickets from overs.balls --> No explanation on run, wicket, over and balls && how to derive them

    • 11 runs, one wicket/out from 1 over zero balls --> This is just a word-by-word explanation of the desired output without providing a step-by-step explanation on how to derive each calculation

    • If a WIDE or a NOBALL is bowled, extra runs are assigned to the score, but the ball is re-bowled, meaning there is an extra ball in the array: --> No explanation on WIDE / NOBALL and how will the extra balls be added to the array (Front / back / irrelevant with its position)???

    • Does not state whether run or wicket are explicitly counted towards over

    • The maximum balls is 5, the minimum is 6 --> This does not make any sense and provided more confusion to the task (As previously An 'OVER' in cricket, is made of 6 'BALLS' has been mentioned)

    • '5.0''5.1''5.2''5.3''5.4''5.5''6.0' --> This should be mentioned along with the OVER && BALL section, explicitly describing that every cycle of OVER can contain maximum 6 balls with additional balls written as a "decimal point" or after the . .

  • Custom User Avatar

    I'll raise an issue about that

  • Custom User Avatar

    I don't see how "overs" and "balls" are described. Also, the description is all over the place. There is no good structure.

  • Custom User Avatar

    did you miss the key section? The description didn't seem that bad to me...

    edit: yeah, looks like most of the things are in wrong order (at least)

  • Custom User Avatar
  • Custom User Avatar

    What a horrible description. I'm going through wiki to get specs for each of the terms you mentioned in the kata.

  • Custom User Avatar
  • Custom User Avatar

    Similar, but not same - eg my Kata doesn't include extras

  • Default User Avatar

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

  • Default User Avatar

    Hi !
    I had always heard that cricket rules were so complicated that even the English did not understand them . . .
    Fortunetly this kata shows us how false was this view ! ;))))

  • Loading more items...