Monday, October 31, 2016

Random Python Programs: October 31 2016

Bloom A-life Simulator Prototype 1

import random
cname = Bloom
wname = Eartfea
chealth = 1
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
birthday = 1
day = 1
year = 1
while chealth>0:
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("A new year has arrived.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")

if wtemp>cmaxtemp:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
if wtemp>cmaxtemp:
cod = "Heat Exhaustion"
chealth -= 1
if wtemp print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
if wtemp cod = "Froze to Death"
chealth -= 1
if cmintemp>=wtemp<=cmaxtemp:
print("Today was a Fine Day")
print("-----------------------")
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: p=""> print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")


Bloom A-life Simulator Prototype 2

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 1
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
birthday = 1
day = 1
year = 1
while chealth>0:
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("A new year has arrived.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
if wtemp>cmaxtemp:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
if wtemp>cmaxtemp:
cod = "Heat Exhaustion"
chealth -= 1
if wtemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
if wtemp
cod = "Froze to Death"
chealth -= 1
if cmintemp>=wtemp<=cmaxtemp:
print("Today was a Fine Day")
print("-----------------------")
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 3

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 1
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
birthday = 1
day = 1
year = 1
while chealth>0:
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("A new year has arrived.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
if wtemp>cmaxtemp:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
if wtemp>cmaxtemp:
cod = "Heat Exhaustion"
chealth -= 1
if wtemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
if wtemp
cod = "Froze to Death"
chealth -= 1
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 4

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
birthday = 1
day = 1
year = 1
while chealth>0:
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("A new year has arrived.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
if ctemp>cmaxtemp:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 5

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
birthday = 1
day = 1
year = 1
while chealth>0:
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("A new year has arrived.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
if ctemp>cmaxtemp:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 6

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
birthday = 1
day = 1
year = 1
shelter = 0
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if shelter == 0 and wtemp>cmaxtemp or wtemp
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if survivalchance == 0:
print(cname,"does not search for shelter.")
if ctemp>cmaxtemp and shelter=0:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
if shelter == 1:
print(cname,"went out into the world to explore.")
shelter = 0
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 7

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
birthday = 1
day = 1
year = 1
shelter = 0
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if shelter == 0 and wtemp>cmaxtemp or wtemp
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if survivalchance == 0:
print(cname,"does not search for shelter.")
if ctemp>cmaxtemp and shelter=0:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
if shelter == 1:
print(cname,"went out into the world to explore.")
shelter = 0
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 8

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
birthday = 1
day = 1
year = 1
shelter = 0
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if shelter == 0 and wtemp>cmaxtemp or wtemp
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if survivalchance == 0:
print(cname,"does not search for shelter.")
if ctemp>cmaxtemp and shelter==0:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
if shelter == 1:
print(cname,"went out into the world to explore.")
shelter = 0
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 9

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
birthday = 1
day = 1
year = 1
shelter = 0
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if shelter == 0 and wtemp>cmaxtemp or wtemp
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
shelter = 1
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if survivalchance == 0:
print(cname,"does not search for shelter.")
if ctemp>cmaxtemp and shelter==0:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
if shelter == 1:
print(cname,"went out into the world to explore.")
shelter = 0
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 10

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = random.randint(cmintemp,cmaxtemp)+furtemp+wtemp
birthday = 1
day = 1
year = 1
shelter = 0
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if shelter == 0 and ctemp>cmaxtemp or ctemp
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
shelter = 1
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if survivalchance == 0:
print(cname,"does not search for shelter.")
if shelter == 1 and ctemp>cmaxtemp or ctemp
if wtemp>0:
ctemp -= wtemp
if ctemp>cmaxtemp:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtemp<0: div="">
ctemp = random.randint(cmintemp,cmaxtemp)+furtemp
if ctemp>cmaxtemp:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if ctemp>cmaxtemp and shelter==0:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
if shelter == 1:
print(cname,"went out into the world to explore.")
print("-----------------------")
shelter = 0
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 11

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = random.randint(cmintemp,cmaxtemp)+furtemp+wtemp
birthday = 1
day = 1
year = 1
shelter = 0
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if shelter == 0 and ctemp>cmaxtemp or ctemp
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
shelter = 1
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if survivalchance == 0:
print(cname,"does not search for shelter.")
if ctemp>cmaxtemp and shelter==0:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
if shelter == 1:
print(cname,"went out into the world to explore.")
print("-----------------------")
shelter = 0
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 12

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = random.randint(cmintemp,cmaxtemp)+furtemp+wtemp
birthday = 1
day = 1
year = 1
shelter = 0
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if shelter == 0 and ctemp>cmaxtemp or ctemp
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
shelter = 1
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if survivalchance == 0:
print(cname,"does not search for shelter.")
if ctemp>cmaxtemp and shelter==0:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -=furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -=furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
if shelter == 0:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
shelter = 1
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if shelter == 1:
print(cname,"went out into the world to explore.")
print("-----------------------")
shelter = 0
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 13

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = random.randint(cmintemp,cmaxtemp)+furtemp+wtemp
birthday = 1
day = 1
year = 1
shelter = 0
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if shelter == 0 and ctemp>cmaxtemp or ctemp
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
shelter = 1
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if survivalchance == 0:
print(cname,"does not search for shelter.")
if ctemp>cmaxtemp and shelter==0:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -= furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -= furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
if shelter == 0:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
shelter = 1
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if shelter == 1:
print(cname,"went out into the world to explore.")
print("-----------------------")
shelter = 0
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = random.randint(cmintemp,cmaxtemp)+furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 14

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
cmintemp = 70
cmaxtemp = 115
furtemp = 5
wmintemp = 70
wmaxtemp = 134
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = random.randint(97,99)+furtemp+wtemp
birthday = 1
day = 1
year = 1
shelter = 0
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if shelter == 0 and ctemp>cmaxtemp or ctemp
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
shelter = 1
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if survivalchance == 0:
print(cname,"does not search for shelter.")
if ctemp>cmaxtemp and shelter==0:
print("Today is a Hot Day")
print("-----------------------")
shedchance = random.randint(0,1)
if shedchance==0:
print(cname,"did not shed fur to survive the harsh heat.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if shedchance==1:
ctemp -= furtemp
furtemp -= 1
ctemp += furtemp
print(cname,"shed fur to survive the heat")
if ctemp>cmaxtemp:
print("It wasn't very effective.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if ctemp
print("It was super effective.")
print("-----------------------")
if ctemp
print("Today is a Cold Day")
print("-----------------------")
furgrowth = random.randint(0,1)
if furgrowth==0:
print(cname,"did not grow fur to survive the cold.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if furgrowth==1:
ctemp -= furtemp
furtemp += 1
ctemp += furtemp
print(cname,"grew fur to survive.")
if ctemp
print("It wasn't very effective.")
cod = "Froze to Death"
chealth -= 1
if ctemp>cmintemp:
print("It was super effective!")
print("-----------------------")
if wtempcmintemp:
print("Today was a Fine Day")
print("-----------------------")
if shelter == 0:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"decides to search for shelter.")
survivalchance = random.randint(1,6)
if survivalchance == 6:
shelter = 1
print (cname,"found shelter!")
print("-----------------------")
else:
print (cname,"failed to find shelter.")
print("-----------------------")
if shelter == 1:
print(cname,"went out into the world to explore.")
print("-----------------------")
shelter = 0
day += 1
wtemp = random.randint(wmintemp,wmaxtemp)
ctemp = random.randint(97,99)+furtemp+wtemp
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 15

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
birthday = 1
day = 1
year = 1
shelter = 0
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if shelter == 0:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is cold.")
if survivalchance == 1:
print(cname,"is comfortable.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to grow fur to survive the freezing temperatures.")
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and grow fur to survive the harsh weather.")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is hot.")
if survivalchance == 1:
print(cname,"is comfortable.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to shed fur to survive the blazing temperatures.")
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and shed fur to survive the harsh weather.")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
survivalchance = random.randint(0,1)
if survivalchance==0:
print (cname,"doesn't attempt to search for shelter.")
if survivalchance == 1:
print (cname,"attempts to search for shelter.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print (cname,"fails to find shelter.")
if survivalchance == 1:
print (cname, "successfully finds shelter.")
shelter = 1
if shelter == 1:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print(cname, "is comfortable inside their shelter.")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print(cname, "is comfortable inside their shelter.")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
survivalchance = random.randint(0,1)
if survivalchance==0:
print(cname,"spends a nice day inside their shelter.")
if survivalchance==1:
print(cname,"decides to go on an adventure and explore outside the shelter.")
shelter = 0
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 16

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
birthday = 1
day = 1
year = 1
shelter = 0
wtemp = "Comfortable"
ctemp = "Comfortable"
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year,")
print("-----------------------")
if shelter == 0:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is cold.")
if survivalchance == 1:
print(cname,"is comfortable.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to grow fur to survive the freezing temperatures.")
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and grow fur to survive the harsh weather.")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is hot.")
if survivalchance == 1:
print(cname,"is comfortable.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to shed fur to survive the blazing temperatures.")
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and shed fur to survive the harsh weather.")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
survivalchance = random.randint(0,1)
if survivalchance==0:
print (cname,"doesn't attempt to search for shelter.")
if survivalchance == 1:
print (cname,"attempts to search for shelter.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print (cname,"fails to find shelter.")
if survivalchance == 1:
print (cname, "successfully finds shelter.")
shelter = 1
if shelter == 1:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print(cname, "is comfortable inside their shelter.")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print(cname, "is comfortable inside their shelter.")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
survivalchance = random.randint(0,1)
if survivalchance==0:
print(cname,"spends a nice day inside their shelter.")
if survivalchance==1:
print(cname,"decides to go on an adventure and explore outside the shelter.")
shelter = 0
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 17

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
birthday = 1
day = 1
year = 1
shelter = 0
wtemp = "Comfortable"
ctemp = "Comfortable"
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year)
print("-----------------------")
if shelter == 0:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is cold.")
if survivalchance == 1:
print(cname,"is comfortable.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to grow fur to survive the freezing temperatures.")
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and grow fur to survive the harsh weather.")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is hot.")
if survivalchance == 1:
print(cname,"is comfortable.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to shed fur to survive the blazing temperatures.")
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and shed fur to survive the harsh weather.")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
survivalchance = random.randint(0,1)
if survivalchance==0:
print (cname,"doesn't attempt to search for shelter.")
if survivalchance == 1:
print (cname,"attempts to search for shelter.")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print (cname,"fails to find shelter.")
if survivalchance == 1:
print (cname, "successfully finds shelter.")
shelter = 1
if shelter == 1:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print(cname, "is comfortable inside their shelter.")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print(cname, "is comfortable inside their shelter.")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
survivalchance = random.randint(0,1)
if survivalchance==0:
print(cname,"spends a nice day inside their shelter.")
if survivalchance==1:
print(cname,"decides to go on an adventure and explore outside the shelter.")
shelter = 0
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 18

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
birthday = 1
day = 1
year = 1
shelter = 0
wtemp = "Comfortable"
ctemp = "Comfortable"
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year)
print("-----------------------")
if shelter == 0:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is cold.")
print("-----------------------")
if survivalchance == 1:
print(cname,"is comfortable.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to grow fur to survive the freezing temperatures.")
print("-----------------------")
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and grow fur to survive the harsh weather.")
print("-----------------------")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is hot.")
print("-----------------------")
if survivalchance == 1:
print(cname,"is comfortable.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to shed fur to survive the blazing temperatures.")
print("-----------------------")
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and shed fur to survive the harsh weather.")
print("-----------------------")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance==0:
print (cname,"doesn't attempt to search for shelter.")
print("-----------------------")
if survivalchance == 1:
print (cname,"attempts to search for shelter.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print (cname,"fails to find shelter.")
print("-----------------------")
if survivalchance == 1:
print (cname, "successfully finds shelter.")
print("-----------------------")
shelter = 1
if shelter == 1:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print(cname, "is comfortable inside their shelter.")
print("-----------------------")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print(cname, "is comfortable inside their shelter.")
print("-----------------------")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance==0:
print(cname,"spends a nice day inside their shelter.")
print("-----------------------")
if survivalchance==1:
print(cname,"decides to go on an adventure and explore outside the shelter.")
print("-----------------------")
shelter = 0
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
day += 1
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 19

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
birthday = 1
day = 1
year = 1
shelter = 0
wtemp = "Comfortable"
ctemp = "Comfortable"
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year)
print("-----------------------")
if shelter == 0:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is cold.")
print("-----------------------")
if survivalchance == 1:
print(cname,"is comfortable.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to grow fur to survive the freezing temperatures.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and grow fur to survive the harsh weather.")
print("-----------------------")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is hot.")
print("-----------------------")
if survivalchance == 1:
print(cname,"is comfortable.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to shed fur to survive the blazing temperatures.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and shed fur to survive the harsh weather.")
print("-----------------------")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance==0:
print (cname,"doesn't attempt to search for shelter.")
print("-----------------------")
if survivalchance == 1:
print (cname,"attempts to search for shelter.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print (cname,"fails to find shelter.")
print("-----------------------")
if survivalchance == 1:
print (cname, "successfully finds shelter.")
print("-----------------------")
shelter = 1
if shelter == 1:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print(cname, "is comfortable inside their shelter.")
print("-----------------------")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print(cname, "is comfortable inside their shelter.")
print("-----------------------")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance==0:
print(cname,"spends a nice day inside their shelter.")
print("-----------------------")
if survivalchance==1:
print(cname,"decides to go on an adventure and explore outside the shelter.")
print("-----------------------")
shelter = 0
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
day += 1
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 20

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
birthday = 1
day = 1
year = 1
shelter = 0
wtemp = "Comfortable"
ctemp = "Comfortable"
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year)
print("-----------------------")
if shelter == 0:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is cold.")
print("-----------------------")
if survivalchance == 1:
print(cname,"is comfortable.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to grow fur to survive the freezing temperatures.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and grow fur to survive the harsh weather.")
print("-----------------------")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is hot.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to shed fur to survive the blazing temperatures.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and shed fur to survive the harsh weather.")
print("-----------------------")
if survivalchance == 1:
print(cname,"is comfortable.")
print("-----------------------")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance==0:
print (cname,"doesn't attempt to search for shelter.")
print("-----------------------")
if survivalchance == 1:
print (cname,"attempts to search for shelter.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print (cname,"fails to find shelter.")
print("-----------------------")
if survivalchance == 1:
print (cname, "successfully finds shelter.")
print("-----------------------")
shelter = 1
if shelter == 1:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print(cname, "is comfortable inside their shelter.")
print("-----------------------")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print(cname, "is comfortable inside their shelter.")
print("-----------------------")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance==0:
print(cname,"spends a nice day inside their shelter.")
print("-----------------------")
if survivalchance==1:
print(cname,"decides to go on an adventure and explore outside the shelter.")
print("-----------------------")
shelter = 0
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
day += 1
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 21

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 50
birthday = 1
day = 1
year = 1
shelter = 0
wtemp = "Comfortable"
ctemp = "Comfortable"
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year)
print("-----------------------")
if shelter == 0:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is cold.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to grow fur to survive the freezing temperatures.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and grow fur to survive the harsh weather.")
print("-----------------------")
if survivalchance == 1:
print(cname,"is comfortable.")
print("-----------------------")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is hot.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to shed fur to survive the blazing temperatures.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and shed fur to survive the harsh weather.")
print("-----------------------")
if survivalchance == 1:
print(cname,"is comfortable.")
print("-----------------------")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance==0:
print (cname,"doesn't attempt to search for shelter.")
print("-----------------------")
if survivalchance == 1:
print (cname,"attempts to search for shelter.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print (cname,"fails to find shelter.")
print("-----------------------")
if survivalchance == 1:
print (cname, "successfully finds shelter.")
print("-----------------------")
shelter = 1
if shelter == 1:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print(cname, "is comfortable inside their shelter.")
print("-----------------------")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print(cname, "is comfortable inside their shelter.")
print("-----------------------")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance==0:
print(cname,"spends a nice day inside their shelter.")
print("-----------------------")
if survivalchance==1:
print(cname,"decides to go on an adventure and explore outside the shelter.")
print("-----------------------")
shelter = 0
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
day += 1
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")

Bloom A-life Simulator Prototype 22

import random
cname = "Bloom"
wname = "Eartfea"
chealth = 6
birthday = 1
day = 1
year = 1
shelter = 0
wtemp = "Comfortable"
ctemp = "Comfortable"
while chealth>0:
if year>=71:
survivalchance = random.randint(0,1)
if survivalchance == 1:
print(cname,"appears to be living a long and happy life.")
print("-----------------------")
if survivalchance == 0:
cod = "Old Age"
chealth = 0
if day==366:
print("Happy New Year.")
print("-----------------------")
year += 1
day = 1
if day==birthday:
print("Happy Birthday",cname)
print("-----------------------")
print("|Adventures of",cname,"|Day:",day,"|Year",year)
print("-----------------------")
if shelter == 0:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is cold.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to grow fur to survive the freezing temperatures.")
print("-----------------------")
cod = "Froze to Death"
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and grow fur to survive the harsh weather.")
print("-----------------------")
if survivalchance == 1:
print(cname,"is comfortable.")
print("-----------------------")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "is hot.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print(cname, "was unable to shed fur to survive the blazing temperatures.")
print("-----------------------")
cod = "Heat Exhaustion"
chealth -= 1
if survivalchance == 1:
print(cname, "was able to adapt to the enviornment and shed fur to survive the harsh weather.")
print("-----------------------")
if survivalchance == 1:
print(cname,"is comfortable.")
print("-----------------------")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance==0:
print (cname,"doesn't attempt to search for shelter.")
print("-----------------------")
if survivalchance == 1:
print (cname,"attempts to search for shelter.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance == 0:
print (cname,"fails to find shelter.")
print("-----------------------")
if survivalchance == 1:
print (cname, "successfully finds shelter.")
print("-----------------------")
shelter = 1
if shelter == 1:
survivalchance = random.randint(0,2)
if survivalchance == 0:
wtemp = "Cold"
print("Today is a Cold Day.")
print(cname, "is comfortable inside their shelter.")
print("-----------------------")
if survivalchance == 1:
wtemp = "Hot"
print("Today is a Hot Day.")
print(cname, "is comfortable inside their shelter.")
print("-----------------------")
if survivalchance == 2:
wtemp = "Comfortable"
print("Today is a Fine Day.")
print("-----------------------")
survivalchance = random.randint(0,1)
if survivalchance==0:
print(cname,"spends a nice day inside their shelter.")
print("-----------------------")
if survivalchance==1:
print(cname,"decides to go on an adventure and explore outside the shelter.")
print("-----------------------")
shelter = 0
print("|Adventures of",cname,"|Day:",day,"|Year",year,"|World Temperature:",wtemp,"|Creature Temperature",ctemp)
print("-----------------------")
day += 1
if chealth<1: div="">
print(cname,"has died of",cod,"on day",day,"of year",year,"on world",wname)
print("The temperature was:",wtemp,cname,"'s temperature was",ctemp)
print("-----------------------")