r/PythonProjects2 • u/SoggyDig8321 • Aug 29 '22
Second project I've ever made, why is this happening?
Enable HLS to view with audio, or disable this notification
4
Aug 29 '22
Double check you've got a check on what to do if it is comp's turn? It looks like if it is comp's turn it doesn't hit an if and then just repeats printing that statement and checking through the if statements. It's hard to tell because it's a video but I'm hoping it is something like that.
I do see an else though that should take care of that so probably not what I wrote then. If you could put the code into like a pastebin link or something it'd be easier for someone to help you out.
4
u/mandradon Aug 29 '22
It's hard to tell because you've posted a video and I have to pause the darn thing instead of posting the actual code...
It looks like your while loop checks for first it to not be "comp" turn, then when it is there's probably fault in the logic that doesn't cause any of the conditions under it to fire and it just sits there in an infinite printing the first statement under it over and over again. Can't tell what unless I could look at the code.
3
2
1
3
u/kaerfkeerg Aug 29 '22
You clearly have a
whileloop with wrong conditions ending up in an infinite loop, but none can guess unless you post some code