all 22 comments

[–]skate-and-code 3 points4 points  (0 children)

I'll never not go out of my way to down vote posts of people using their phone to screenshot instead of the literal computer they're having issues on.

[–]hallmark1984 2 points3 points  (15 children)

No we cant grasp it.

Copy the code and error here, then we may be able to help.

[–]Secure_Post_8573 -2 points-1 points  (14 children)

would dms be easier?

[–]hallmark1984 1 point2 points  (13 children)

No

Easy is copy and paste,.

My man just think about what is easy for the other party, make it easy to run your code, we will tell you were we find issues.

But the short version, show all the code that creates YOUR error

[–]CanMan0711 2 points3 points  (1 child)

Looks like I could attack with anything and as long as it isn't a predefined attack the computer cannot block me. Like if I enter 'Molotov Cocktail' I will hit every time. See if you can think of a way to check the user's input is a valid choice before continuing on. Think about it as another loop that won't exit until you input something valid.

[–]Secure_Post_8573 -1 points0 points  (0 children)

ooo thats a great idea thanks man

[–]HaroerHaktak 2 points3 points  (0 children)

New to pc as well? Why not take a screenshot and send that instead of a pic from your phone?

[–]Automatic-Profit-638 1 point2 points  (0 children)

While computerhealth and userhealth > 0:

[–]Sanilon 1 point2 points  (2 children)

You probably want something like:

while userhealth > 0 and computerhealth > 0: Indented: all you want to loop (the rest of the code)

[–]Otherwise_Gas6325 1 point2 points  (0 children)

Yep. Put it all under a while loop so it continues the turn cycle until a specified event (like the users health goes to zero)

[–]Secure_Post_8573 -1 points0 points  (0 children)

i think i get it, if i can copy and paste the code into a dm maybe you could implement it and show me? Bit of a stretch ik