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