Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Ghosts Age by DanielDou
# From Daniel Dou with love...
def checkio(low):
weapons = ["Proton Packs", "Dematerializer", "PKE Meter", "Ecto Goggles", "Ecto Containment Unit"]
ghostbusters = ["Peter", "Raymond", "Egon", "Winston"]
paranormal_activity = len(ghostbusters) * (len(weapons)*10)**2
activate = weapons[2]
pke_readings = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765]
clients = 0
status = ""
while paranormal_activity != low:
status = "A wild ghost appears!"
clients += 1
if clients in pke_readings:
activate = weapons[0]
status = "Client was actually a ghost. We destroyed him!"
paranormal_activity -= clients
else:
status = "Client was actually a ghost. But he got away! Darn!"
paranormal_activity += 1
activate = weapons[4]
status = "All clients destroyed! They were all ghosts!!??!!"
return clients
March 4, 2014
Comments: