Ad
  • Custom User Avatar

    Dear author! Please clarify in the conditions that if there is an overflow and the player is thrown back, then if he gets on the snake, he should roll down! i.e. if there were 98 points and the player throws a sum of points equal to 3, then as a result of this move he gets to the 80th field. I understood this feature after 2 days of testing

  • Custom User Avatar

    It turns out that this problem cannot be solved in c#?

  • Custom User Avatar

    Use of test annotations in C# random tests is ridiculous and needs to be cleaned up.

  • Custom User Avatar

    I'm confused. Is this a coding test or just a game? Is the task to write a function to win the game? That's not obvious from the instruction. I'm new to codewars so maybe I'm missing something

  • Custom User Avatar

    approved by someone

  • Custom User Avatar

    closing as this is not specific to this kata and would require a systematic update of JavaScript content on Codewars

  • Custom User Avatar

    this particular cheese has been fixed

  • Custom User Avatar
    • tmp is missing a byte for the nul terminator
    • you increment i for every character in y, and you also use i to index target. So if there are non-letter characters in y, you will write out-of-bounds of target.
  • Custom User Avatar

    Haskell translation

    • Description has been updated with markdown and splitting out some sections into language-specific blocks.
    • To enforce the 60-move limit, the solution runs in within a monad that tracks game state. I wouldn't mind some feedback on how I implemented it and if the solution setup code is adequate enough to help solvers.
  • Custom User Avatar

    Simple funny kata)

  • Custom User Avatar
    • added instructions in the initial code to specify that the function has to be stateful
    • added proper random tests (previously only one game was played, since there is no way to reset the game state)
    • added the full log of dice rolls to the assertion messages
  • Custom User Avatar

    (OP's language was C) only one game was run in the random tests, due to the peculiar setup of this kata in C (the function has to be stateful). I rewrote the tests to run 100 games, several solutions have been invalidated.

  • Custom User Avatar

    Very interesting tests for this KATA

    I've never seen a kata with different output for the same input ;)

    Gotta learn OOP 💪 better

  • Custom User Avatar

    I would like seeing sample tests till the end of the game for better clarity

  • Custom User Avatar

    Great job! I was stumped for the longest time.

  • Loading more items...