5 kyu

Let's Play Darts!

203 of 944FrankK
Description
Loading description...
Games
Algorithms
  • Please sign in or sign up to leave a comment.
  • tobeannouncd Avatar

    Haskell setup code shows BullDS for the bulls-eye return value when the actual value should be SingleBullDS

  • ahmet_popaj Avatar

    Interesting and funny kata to learn and understand some new concepts.

  • kilwap Avatar

    I solved it using python and 7 basic tests pass without a problem, but at "Random coordinates" attempt I get a message "None should equal '11'". Could someone help me understand why this is happening?

  • Pepseso Avatar

    This comment has been hidden.

  • XaviDS Avatar

    Hello, thx for the kata. It is a very nice challenge. I have passed the test and I am now working on the attempt part, but I can't get through it because some points are so close to the border that numerical precision is an issue. At least I think it is. Are you getting the same issue in Python? or should I try to think about another approach?

  • Just4FunCoder Avatar

    This comment has been hidden.

  • zhoubou Avatar

    When attempting a solution in Python, the test case remains red: "Random coordinates must return the correct scores" Even as there are no failed test cases.

  • mauro-1 Avatar

    This comment has been hidden.

  • WxzFor Avatar

    There is typo in swift

    Default function name is throw, but should be getScore

  • xDJxYummY Avatar

    This was a really good Kata, it took about 3 pages of scratch paper to figure out how I wanted to do this!!

  • Late347 Avatar

    This comment has been hidden.

  • MaurisLucis Avatar

    Using python; a small typo in the sample test cases caught my eye. For your 'T2' assertion, the subsequent string misspells 'triple' as 'tripple.'

    Great kata, thank you!

  • Enock Avatar

    I'm using Haskell, there are two issues here:

    1. in the preloaded type, it should be SingleBullDS instead of BullDS, it confused me a while until I read the simple test code.
    2. I can't understand why (-133.69, -147.38) is MissDS, as I understand, the largest range is 340 and sqrt(134^2+147^2)= 199.
  • quid_obscurum Avatar

    Please, explain how (-133.69, -147.38) is "X" if the coordinates are within the Double ring inner circle (d = 324 mm) which should give a single number.

  • pegasusroe Avatar

    There must be something VERY WRONG with this kata!

    With the coordinate (-101.572654585255 , -111.898313933494), the RIGHT answer should be 7, this is my proof:

  • EugenSleptsov Avatar

    This comment has been hidden.

  • LeeMar Avatar

    This was really fun FrankK!

    Off to part 2!

  • anter69 Avatar

    Incomplete description:

    If you throw your dart 5 centimeters to the left and 3 centimeters below, it is written as:

    ...but the example is missing!

  • alekseyvit Avatar

    I solved this kata, but I can't figure out Random Test. Where can a problem be? Should I use BigDecimal? HELP

  • Soptinator Avatar

    Whew, that was a tough kata. I spent all day trying to figure out the RandomTest. Hint: Presicion matters.

    Excellent Kata Frank! Thanks!

  • Soptinator Avatar

    I pass all the final tests but I fail the RandomizedTest with a IndexOutOfRangeException. I really want to beat this Kata please help.

  • ecolban Avatar

    This comment has been hidden.

  • muesli4 Avatar

    This comment has been hidden.

  • kjmosher Avatar

    Very enjoyable kata! Had fun doing this one, especially since I played a lot of Darts years ago!

  • docgunthrop Avatar

    The description should be revised to clarify that the sizes of the different circles are based on radius, and NOT diameter. For example, the bull's eye size is listed as 6.35mm. But it really should state that the radius of the bull's eye is 6.35mm.

    Using the term "size" leads to ambiguity, as it could refer to diameter, circumference, or area. Even a term like "width" generally refers to diameter rather than radius.

    Other than that, it's a good, original kata.

  • ZozoFouchtra Avatar

    *Ooooch!* Understand, at last ! May be some more explanations on how score is computed (a link to https://en.wikipedia.org/wiki/Darts#Scoring ?) would help non-dart-players like me.

    ; ))