i have a broken while loop on my hands. I know how to code the arguments but the arguments take one loop more than they should.
my code looks something like this...
when i run the program it takes one extra turn to pick up that one or the other is dead.Code:while((monsterhp>0)&&(playerhp>0))
{
//player attacks using magic or item
monsterhp-=damage;
//monster now attacks
playerhp-=damage;
//yes the damage int does change since last time i used it.
}
if you need morecoding just say so and ill try to be more in depth.
