Ad
  • Custom User Avatar

    The technical challenge of this kata is good and fun, but 80% of my time was spent trying to figure out what that challenge actually is. Do I need member revenue of > $1000:

    1. in any one department that has > $10000 revenue?
    2. summed across each department that has > $10000 revenue?
    3. summed across all departments that cumulatively have > $10000 revenue?

    (for anyone looking for clarification, it's #2)

    I think using more specific language and adding an example scenario would increase the clarity, and thus overall satisfaction rating, of this kata.

  • Custom User Avatar

    Love the idea of this kata.

    Suggesting this as an improvement because I'm not sure whether it's a bug or something on my end.

    I could always get game.check() to return an array of 4 "Black"s in less than 60 calls, but the tests would never be considered passing. After submitting many times in a row without changing my solution, it did eventually pass. Any ideas why this might happen?

  • Custom User Avatar

    Oh wow. That's embarassing. Thanks!

  • Custom User Avatar

    I'm not understanding something or one of the examples is incorrect.

    basket = 50
    pile = 'dust83dust 45 25 22 46'
    Test.assert_equals(pack_basket(basket,pile),'The basket weighs 47 kilograms')
    

    You cannot make 47 from any combination of 83, 45, 25, 22, and 46. What gives?