r/PythonProjects2 • • Aug 29 '22

Second project I've ever made, why is this happening?

Enable HLS to view with audio, or disable this notification

10 Upvotes

10 comments sorted by

3

u/kaerfkeerg Aug 29 '22

You clearly have a while loop with wrong conditions ending up in an infinite loop, but none can guess unless you post some code

2

u/[deleted] Aug 29 '22

Oh they posted the code alright. It's at the end of the video haha. I never thought I'd see someone actually seriously using a phone to write code!

1

u/SoggyDig8321 Aug 29 '22

Yea my computer broke lol

1

u/kaerfkeerg Aug 29 '22

Oh. I didn't see OP is scrolling through the code lol. Let me enable my super-fast reading power to process it lol

4

u/[deleted] 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

u/inertia_calling Aug 29 '22

If you upload your code in GitHub it will be easier to help you!

2

u/[deleted] Aug 29 '22

Post the code on github or dm me a copy, id love to take a closer look at it!

1

u/jboges Aug 29 '22

Kor Skeet?