Skip to content
Sign UpLog In
Profile icon

glitch trap

@TaylorRichardso
i'm a virus
Repls
Community
TaylorRichardso
TaylorRichardso
shared a Post
2 years ago
i need help
i not understanding how my teacher wants me to do this
guess the number game
Python
Bookie0
Bookie0
What do you need exactly? Can you precise your question? Also, what have you tried? What is going wrong? What do you think is causing the problem, and what do you think could solve it? According to the first lines in your program, you want to create a guessing game. We can't directly give you the code, but here's an outline of what you can do. First, you'll need a variable which generates a random number, or set the variable to a number. Then, you can use input() to ask the user to guess. With2 years ago
dumbCodr
dumbCodr
He wants you to write a program that thinks of a number, then asks the user to guess it, and tell the user wheather they were to high or too low, if they cant guess the number within 7 turns make the computer tell them they lost and reveal the number2 years ago
Coder100
Coder100
give more context first2 years ago
TaylorRichardso
TaylorRichardso
shared a Post
2 years ago
i need to come up with a scenario where you would use a while loop in a shooting game. Describe the situation using comments. Tell the user what is ha
practicing while loops
Python
TaylorRichardso
TaylorRichardso
thank you LukeWright 2 years ago
LukeWright
LukeWright
I guess you can take some inspiration from my target practice game where the draw loop is a while loop that runs continiously and excutes certain functions. to put this into python it would be: rungame = True while rungame: moveEnemy() background(255) calibration() drawBackground() move() moveEnemy() drawEnemy() drawCars() aDS() gui() hit1() time() rands() swapGun() in the code above, when you change the variable rungame to false, then it will stop looping. here is th2 years ago