Ad
  • 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

  • Default User Avatar

    approved by someone

  • Default User Avatar

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

  • Default User Avatar

    this particular cheese has been fixed

  • Default 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)

  • Default 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
  • Default 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

  • Default User Avatar

    Great job! I was stumped for the longest time.

  • Custom User Avatar

    Whenever you have no moves left in the "directions" array, that's the limit 👍

  • Custom User Avatar

    dont need use return if function wrote in 1 line

  • Custom User Avatar

    Very nice kata due to the steps that we have to accomplish to resolve it I think this is a great exercice to built specific functions for each steps.

  • Loading more items...