glitch trap
@TaylorRichardso
i'm a virus
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 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
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
Python
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