Ad
  • Custom User Avatar

    Fixed.

  • Custom User Avatar

    They are still present in JS, while having them on both Ruby and Python is kinda problematic.

  • Custom User Avatar

    Yes... What brunolm said is right. I didn't put enough guesses with letters that were missed already (not enough to hung).

    Just fixed it on both languages.

  • Custom User Avatar

    hmm nice catch. It should ignore both (either correct letters and wrong letters).

    The test cases are not testing enough times to see if it was hung by repeating a wrong letter (it is not supposed to be hang), we will fix it.

  • Custom User Avatar

    Added a note in the description:

    important: if the player guesses a letter that was already guessed, you should ignore it and return the {game state}

    Fixed the algorithm in both languages and added a test case.

    Thank you for your feeback.