Thanks for the feedback! This is a tough one, as the message does mention the line in this case, and the proper output.
The 4th time through, you should cut the numSheep by 4 (divide it by 4), and log the amount of sheep that were removed. You may need to do some math to calculate how many sheep were removed. You should log the message
Removing 192 sheep from the population.
It doesn't go further, explaining what the actual difference is (Programs, including the checker, are limited. The line could be missing, it could have a typo like in your case, it could be shifted due to a missing previous line or extra previous line, or the wrong one could've been printed out). That would be tough.
A more reasonable 2nd step is to produce some diff output. That is a fair bit tougher, and I don't think this is planned for future versions of our courses.
So, the workaround is
- to know preciseness is often very important when coding, and
- you can use tools like diff (e.g., an online diff) to help out
This is a canned case, where errors are better than many, is tough to achieve. From experience with tons of different environments, good errors for anything but the most trivial programs is beyond humans' ability.
So, great job figuring it out, and always feel free to post the code you're submitting for some help, as an extra set of on it can help!