Mousey_.
Badges: 9
Rep:
?
#1
Report Thread starter 1 year ago
#1
I'm creating a game on python for Computer Science and I need help!!!
Basically, I have questions on there but if they get the question wrong twice in a row, the game is supposed to end. However, it doesn't, and instead it repeats the question. I can't break it because I haven't used a while loop and I don't know what to do .. Please help ASAP

Thanks
0
reply
Mousey_.
Badges: 9
Rep:
?
#2
Report Thread starter 1 year ago
#2
(Original post by ltsmith)
why not post on stackoverflow
Okay, thanks I'll try that..
0
reply
winterscoming
Badges: 19
Rep:
?
#3
Report 1 year ago
#3
(Original post by Mousey_.)
I'm creating a game on python for Computer Science and I need help!!!
Basically, I have questions on there but if they get the question wrong twice in a row, the game is supposed to end. However, it doesn't, and instead it repeats the question. I can't break it because I haven't used a while loop and I don't know what to do .. Please help ASAP

Thanks
Noone is going to have any idea how to help you if they don't know what your code looks like (But don't paste code into TSR because it'll lose the formatting, and that won't be any use - the best way to put code on TSR would be a site like http://repl.it/languages/python3 instead).

In terms of general code troubleshooting, it'd be really beneficial for you to learn about how to set a break-point and user the debugger in whichever IDE / editor you're using

For example, here's a tutorial in the PyCharm environment: https://www.jetbrains.com/help/pycha...plication.html
Or for IDLE: https://www.cs.uky.edu/~keen/help/de...ial/debug.html

The debugger is the most important and useful tool you'll ever learn for a programming language - it'll help you see how your program is running and check whether what's happening matches your expectations.
0
reply
Mousey_.
Badges: 9
Rep:
?
#4
Report Thread starter 1 year ago
#4
(Original post by winterscoming)
Noone is going to have any idea how to help you if they don't know what your code looks like (But don't paste code into TSR because it'll lose the formatting, and that won't be any use - the best way to put code on TSR would be a site like http://repl.it/languages/python3 instead).

In terms of general code troubleshooting, it'd be really beneficial for you to learn about how to set a break-point and user the debugger in whichever IDE / editor you're using

For example, here's a tutorial in the PyCharm environment: https://www.jetbrains.com/help/pycha...plication.html
Or for IDLE: https://www.cs.uky.edu/~keen/help/de...ial/debug.html

The debugger is the most important and useful tool you'll ever learn for a programming language - it'll help you see how your program is running and check whether what's happening matches your expectations.
Thank you
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Regarding Ofqual's most recent update, do you think you will be given a fair grade this summer?

Yes (344)
34.75%
No (646)
65.25%

Watched Threads

View All