I created a little game based off of a video by MakingGamesWithBen. It was a challenge video though, so I didn't copy any of his code. I feel like my code should work, but no matter what I do it messes up. It's supposed to be a game where you input a number of allies and enemies, it calculates the battles, and tells you who wins. I even added a temporary counter so I could see the numbers of allies and foes (dubbed Plants and Zombies). Instead, the code just waits until the plants numbers hit 0, while the zombies go into the negatives.
I switched those, but it still didn't work. I believe that when the number hits 0 of the side with more "troops", it ends. It doesn't care about the side that you input a lower number into. But I still have no clue what the fix could be.