Ad
  • Default User Avatar

    Yes,the same here. It is a wrong test case, I hope it will be corrected.

  • Custom User Avatar

    See my reply above.

  • Custom User Avatar

    Have you checked the definition of Fighter in the descriptions against your own? That's where the problem is :)

  • Custom User Avatar
  • Default User Avatar

    Sorry if I am just being crazy or not getting something but it seems some of the random tests are starting fighters with 0 or negative health. I just couldn't figure out why my code wasn't working but figured the only reason would be if a fighter's health wasn't a positve integer to start like the instructions say it will be. I added an if statement at the top of the function to check if either fighter's health was zero and if so it returned a string that indicated this. This string was returned as the "winner" during the random test portion. I am coding in C++.