5 kyu

Zonk game

295 of 1,195SagePtr
Description
Loading description...
Games
Algorithms
  • Please sign in or sign up to leave a comment.
  • akar-0 Avatar
  • Zetty Avatar

    In one of the tests I am failing it is giving 15151 as the code and expecting 1800 as a result, no matter how I look at the table I don't see how to get that result any insight? I am using python if that changes anything After exploring what my code does it submites what I beleive to be the correct answer 1100 but the test case says it submits Zonk while expecting 1800

  • ahmet_popaj Avatar

    Very interesting kata, congratulations.

  • trashy_incel Avatar
  • FArekkusu Avatar

    Description formatting is broken.

  • Ytry Avatar

    I believe there is an error with the test cases for this kata. I belive this because when submitting it says that my code should return 2050, but is instead returning 450. This leads me to believe it's the submission cases not my code because the only combination of 6 dice that can equal 2050 is 1,1,1,1,5 and any 6th number that is not 1 or 5. If I put for example 1,1,1,1,5,6 expects to 2050 it passes. I've tested this with every possible 6th 1-6 digit that isn't 1 or 5, and it works for every one returning 2050. If you could look into this, or if you believe it's my code suggest a test case that should fail.

  • freximus Avatar

    I fail every test with the result ...instead got: undefined"

    The program works well (and is complete) in the terminal and returns with either the correct score or "Zonk". Any ideas?

    Thanks!

  • UXrOy1uvaJY8NWxkIH1x Avatar

    The description should explicitly state that X,X,Y,Y,Y,Y is not three pair. I thought my solution falsely passed until I went back and tried fixing it.

    "took into account" should read "taken into account"

  • warwickwang Avatar

    testcase for submission might've missed the following situation:

    when score of [x, x, x, y, y, y] should be Three-of-kind 'x' + Three-of-kind 'y'.

    e.g. score of [1, 1, 1, 6, 6, 6] ought to be 1000 for Three-of-kind '1' plus 600 for Three-of-kind '6' = 1000 + 600 = 1600

    cause i've passed it (by clicking the 'submit') when i only counted the score of one of them (Three-of-kind 'x' and Three-of-kind 'y'), while failing my own test

    or i might've misunderstood the rules...XD

  • gasull Avatar

    Typo: "You task". It should say "Your task".

  • wthit56 Avatar

    Not sure what "Each 1" and "Each 5" means..? Does it mean every 1 is worth 100 points? And every 5 is worth 50 points?

    Also, I'm guessing that you cannot use a die more than once?

  • OverZealous Avatar

    You've got a mistake in the description: it looks like single 5's are worth 150 points, but they are only worth 50 points (in the table).

    Otherwise, this is a decent kata, with excellent tests. I enjoyed solving it.