Ad
  • Default User Avatar

    I changed the description according to your first comment.

    Can you be more specific about the 2nd one? I do not understand what you are referring to.

  • Default User Avatar

    That's weird. I cannot reproduce this issue.

    The expected score for random tests is computed with my solution as reference : https://www.codewars.com/kata/reviews/5868f6c57ba2f53c2100001e/groups/5868f6c57ba2f53c21000020

    For the given example, it computes 55.

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    No problem.
    Let me know how I can help or fix anything if issues are raised.

  • Default User Avatar

    I was able to submit the final solution (Haskell) by hardcoding 5 values.
    This kata definitely needs more verifications such as random test cases.

  • Default User Avatar

    Hello,
    I proposed a C# translation but I'm not sure what else I should do about it (this is my 1st kata translation ever)

  • Default User Avatar

    Ok. I completed the specs with: If the number of cards is odd, the last ordinary card will count for ½ point.
    And I updated the Haskell initial setup to make it clear that the function returns a Rational.

  • Default User Avatar

    @JohanWiltink
    I thought about using "T" for ten instead of "0" but could not decide what's best.

  • Default User Avatar

    2 ordinary cards are worth 1 point, so 1 ordinary card is worth 0.5 point :-)
    This is also standard practice when playing with 3 or 5 players to count half-points when you get an odd number of cards. This does not happen in a standard 4 players setup.

    From the kata perspective, this is a "hidden spec". I did not elaborate on this one on purpose in the description.
    Do you think I should mention it? Or stay as is so that the developper thinks about it during the kata solving process?

  • Default User Avatar

    Thanks for trying the kata!

  • Default User Avatar

    Thanks for spotting this one.
    This will teach me a lesson about copy-pasting...
    I think the issue is solved now.

  • Default User Avatar

    As others pointed out, warning on tab chars in haskell prevents from submitting the final solution.
    I should have skipped this one so I put it in caps :

    THIS KATA IS BROKEN IN HASKELL. DO NOT WASTE YOUR TIME.

  • Default User Avatar
  • Default User Avatar

    As far as I am concerned, it is winnable :-)
    I could be wrong but I don't think the system allows the opponent to know the move in advance. I think that both players are on the same level of information.

  • Loading more items...