im working on a little text battle game.
what i have so far seems to be ok.
im just learning so please be gentle if criticizing me.
what im having trouble with is ENDING the program when hp or enemhp = 0.
i try to put just a simple return 0;
but the compiler throws an error.
also everytime the user/enemy attacks its always = to 4?? on both sides even though i have it set to random?
all Random Number Generators needs "seeding" before they will work properly, think of this as initialising the RNG, so i'd put the following line as the first line of main(). srand(time(NULL));
you may also need #include <time.h> at the top of your file.