File "Main.py", line 7, in <module>
Sniper()
File "/home/aiden/Desktop/Projects/Live/Strike/SDiv.py", line 28, in Sniper
Shoot()
File "/home/aiden/Desktop/Projects/Live/Strike/SDiv.py", line 17, in Shoot
Dam = random()
What is wrong with the random statement that hang's?
from random import *
def Sniper():
seed()
Quest = 0.1
if Quest == 0.1:
print "Scout: Sniper In Trees, He's your's SnipFire"
Found = uniform(0.1, 0.2)
print Found
if Found < 1:
EnHealth = 2.0
Health = 2.0
def Shoot():
EnHealth = 2.0
Health = 2.0
Dam = random()
EnHealth = EnHealth - Dam
def RetFire():
EnHealth = 2.0
Health = 2.0
DamS = random()
Health = Health - DamS
while Health > 0:
Shoot()
RetFire()
else:
print "Game Over"
if EnHealth == 0:
print "You Killed The Sniper!"
Kills += 1

New Topic/Question
Reply




MultiQuote




|