-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathidea.py
42 lines (34 loc) · 1.45 KB
/
idea.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
from random import choice, randrange
class Idea(object):
def __init__(self):
self.pitch = self.random_idea_generator()
self.features = randrange(90, 150) * 10
self.design_need = randrange(10, 20) * 10
self.action_str = ""
def random_idea_generator(self):
starters = ["Like", "We're"]
products = ["Facebook", "Google", "Tinder", "Instagram", "Gmail", "Uber", "Airbnb",
"Dropbox", "Snapchat", "Pinterest", "Spotify", "SoundHound", "Medium",
"EventBrite", "Quora", "Slack", "Github", "Twitter", "Craigslist",
"an online Community", "a social marketing automation platform",
"a reminder app"
]
combiners = ["with", "without", "but without", "for", "but for"]
nouns = ["pictures", "children", "animals", "pets", "videos", "moms", "dads",
"ugly people", 'videos', "space", "planets", "government", "mathematicians",
"surgeons", "youtubers", "redditors", "events", "ex-girlfriends",
"disappearing messages"]
return "{} {} {} {}.".format(
choice(starters),
choice(products),
choice(combiners),
choice(nouns)
)
def __repr__(self):
return self.pitch
@property
def message(self):
return self.__repr__()
@property
def formatted(self):
return self.__repr__()