thats a nice game for a beginner :) best of luck
it would have been much better had the other player attacked or atleast defended..
but still very good
keep it up.
Uh, as I said, I'm just a beginner. Every single global variable that you see there is being used for the game. I'd appreciate it, if you let me know what the problem with using so many global variables is.
These global variables could be local to main and passed to the other functions. The link below will explain why they are bad and shouldn't be used unless there is no other option.