import random
# LISTS AND DICTS
colors = ['red', 'green', 'blue', 'black', 'white', 'yellow', 'purple', 'pink', 'brown', 'orange']
under_materials = ['satin', 'lace', 'material']
under_panty_types = ['thong', 'string', 'briefs', 'plain']
under_bra_types = ['push up', 'build in', 'sport', 'covertibile', 'demi', 'front closure', 'full support']
over_materials = ['denim', 'material', 'leather', 'corduroy', 'satin', 'silk']
over_low_type = ['pants', 'skirt', 'miniskirt',
'business type short skirt', 'school skirt', 'high cut skirt',
'low waist skirt', 'low waist pants']
over_high_types = ['blazer', 'shirt', 'low cut shirt', 'formal shirt', 'jersey']
boots_types = ['high heels', 'high boots', 'heels', 'slippers', 'running shoes']
body_hair_type = ['straight', 'curly', 'wave']
body_hair_size = ['long', 'short', 'very short', 'neck length']
body_hair_color = ['blonde', 'brown', 'black', 'grey']
body_skin_color = ['black', 'middle-eastern', 'white', 'asian']
body_bust_size = ['A', 'AA', 'B', 'BB', 'C', 'CC', 'D', 'DD']
body_state = ['obese', 'thin', 'anorexic', 'plain', 'petite', 'muscular', 'amazon-like', 'very fat']
clothing = ['OG', 'UG', 'B']
names = ['Alicia', 'Scarlet', 'Julia', 'Anastasia', 'Jennifer', 'Michael', 'Wendy', 'Volorun']
surnames = ['Hernandez', 'Rogozin', 'Wen', 'Catena', 'Goodwood', 'Istakason', 'Lista', 'Moon', 'Sunberry']
options = ["restart", "check woman", "quit"]
mainloop = 1
loop1 = 1
loop2 = 0
women = []
# CLASSES
class Woman(object):
def __init__(self):
self.name = random.choice(names) + ' ' + random.choice(surnames)
self.age = random.randint(18, 45)
self.skin = random.choice(body_skin_color)
self.bust = random.choice(body_bust_size)
self.hair_color = random.choice(body_hair_color)
self.hair_type = random.choice(body_hair_type)
self.hair_size = random.choice(body_hair_size)
self.body_state = random.choice(body_state)
self.inventory = []
for x in clothing: # clothing creation script
if x == "OG":
material = random.choice(over_materials)
top = random.choice(colors) + " " + material + " " + random.choice(over_high_types)
bottom = random.choice(colors) + " " + material + " " + random.choice(over_low_type)
self.inventory.append(top)
self.inventory.append(bottom)
elif x == "UG":
material = random.choice(under_materials)
color = random.choice(colors)
top = color + " " + material + " " + random.choice(under_bra_types) + " bra"
bottom = color + " " + material + " " + random.choice(under_panty_types) + " panty"
self.inventory.append(top)
self.inventory.append(bottom)
elif x == "B":
boots = random.choice(colors) + " " + random.choice(over_materials) + " " + random.choice(boots_types)
self.inventory.append(boots)
else:
pass
def disp(self): # description function
print
print "=============================="
print "NAME : ", self.name
print "AGE : ", self.age
print "RACE : ", self.skin
print "=============================="
print
print "She has %s %s %s hair. Her bust size is %s" % (self.hair_size, self.hair_color, self.hair_type, self.bust)
print "She is %s" % self.body_state
print "She wears:"
for x in self.inventory:
print " ", x
print
print "=============================="
print
# MAIN CODE
while mainloop == 1: # MAIN LOOP
while loop1 == 1: # WOMAN GENERATOR LOOP
print
choice = raw_input("Do you want to create new woman (y/n) ?")
if choice == "y":
woman1 = Woman()
women.append(woman1)
print woman1.disp()
print "Amount of women generated :", len(women)
pass
elif choice == "n":
loop2 = 1
loop1 = 0
else:
print "Wrong answer !"
pass
while loop2 == 1: # CHECK CREATED WOMAN UI LOOP
print
print "What do you want to do ? "
print "Amount of women generated :", len(women)
print "Available options:"
print "=================="
for option in options:
print " ", option
print "=================="
choice = raw_input("")
if choice == "restart":
women = []
loop1 = 1
loop2 = 0
elif choice == "check woman":
print
print "=============="
for woman in women:
print woman.name
print "=============="
print
print "Which woman you want to check ? "
count = 1
while count == 1:
print
print "write woman name or back to go to previous menu"
woman_choice = raw_input()
for woman in women:
if woman.name == woman_choice:
print
print woman.disp()
if woman_choice == "back":
count = 0
elif choice == "quit":
loop1 = 0
loop2 = 0
mainloop = 0
else:
print
print "Wrong answer, try again !"
print
# REST OF CODE
print
print "=============================="
print "Thank you for using womanizer"
print "=============================="
print
raw_input()