Skip to content

Instantly share code, notes, and snippets.

@cddelong6626
Last active December 16, 2016 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cddelong6626/4fc3d8296c804b79270cd15b1ab29af6 to your computer and use it in GitHub Desktop.
Save cddelong6626/4fc3d8296c804b79270cd15b1ab29af6 to your computer and use it in GitHub Desktop.
An amazing name generator that is not a GUI because I am a noob programmer! Any suggestions? Don't email me! Just comment in the section down below that is for suggestions and stuff!
#!/usr/bin/python2.7
"""Cole D... HA! YOU TRIED TO SEE WHAT MY NAME IS! I'M NOT FALLING FOR THAT!
age 12
amazing programmer
such a boss
11-17-16"""
#imports
import random
import time
#arrays
objects = ["Diary", "Bottle", "Water", "Packet", "Chewing Gum", "Tissue", "Glasses", "Watch", "Photo", "Camera", "Stamp", "Postcard", "Dictionary", "Coin", "Brush", "Credit Card", "Key", "Phone", "Wallet", "Button", "Umbrella", "Pen", "Pencil", "Lighter", "Cigarette", "Match", "Lipstick", "Purse", "Case", "Paper Clip", "Scissors", "Rubber", "File", "Passport", "Driving Licence", "Comb", "Notebook", "Laptop", "Rubbish", "Mirror", "Painkiller", "Sunscreen", "Toothbrush", "Battery", "Light Bulb", "Alarm Clock"]
actionVerbs = ["Built", "Bargaining", "Adjusting", "Anticipating", "Aiding", "Boosted", "Confirmed", "Connected", "Capturing", "Caring", "Deducting", "Conserving", "Detailed", "Comfortable", "Debugging", "Defending", "Dispatched", "Educated", "Established", "Enlarged", "Focused", "Enforced", "Fixed", "Generated", "Furnished", "Funded", "Innovative", "Invented", "Identified", "Increased", "Labled", "Logged", "Influenced", "Insecure", "Maintained", "Mastered", "Merged", "Motivated", "Measured", "Observed", "Overseen", "Raised"]
allDefiningStuff = ["Stupid", "Human", "Small", "Able", "Big", "High", "Little", "Last", "Bad", "Adorable", "Beautiful", "Clean", "Elegant", "Fancy", "Glamorous", "Handsome", "Long", "Magnificent", "Old-fashioned", "Plain", "Pathetic", "Sparkling", "Ugliest", "Unsightly", "Wide-eyed", "Red", "Orange", "Yellow", "Green", "Blue", "Purple", "Gray", "Black", "White", "Better", "Dead", "Famous", "Gifted", "Helpful", "Important", "Mushy", "Odd", "Powerful", "Rich", "Shy", "Tender", "Uninterested", "Vast", "Wrong", "Old", "Built", "Bargaining", "Adjusting", "Anticipating", "Aiding", "Boosted", "Confirmed", "Connected", "Capturing", "Caring", "Deducting", "Conserving", "Detailed", "Comfortable", "Debugging", "Defending", "Dispatched", "Educated", "Established", "Enlarged", "Focused", "Enforced", "Fixed", "Generated", "Furnished", "Funded", "Innovative", "Invented", "Identified", "Increased", "Labled", "Logged", "Influenced", "Insecure", "Maintained", "Mastered", "Merged", "Motivated", "Measured", "Observed", "Overseen", "Raised"]
animals = ["Penguin", "Hound", "Elephant", "Frog", "Baboon", "Dog", "Toad", "Bear", "Owl", "Shark", "Bat", "Tiger", "Beetle", "Beagle", "Chicken", "Alligator", "Tortoise", "Bulldog", "Lizard", "Salamander", "Cat", "Unicorn", "Centipede", "Chimpanzee", "Cheetah", "Deer", "Dodo Bird", "Duck", "Otter", "Mole", "Mongoose", "Monkey"]
#nickname types
class nicknameTypes(object):
def adjective(self, a, b, c):
print"what is your name?"
adNum = random.randrange(0,92)
myName = raw_input()
if myName == 'cole' or myName == "Cole":
print"Your nickname is Cole the Super Amazing, smart, Cool guy that is better than everybody else"
time.sleep(1)
playAgain(a, b, c)
#a = allDefiningStuff
nickname = (myName.title() + " the " + a[adNum])
print("Your nickname is " + nickname)
def adjectiveAnimal(self, a, b, c):
adNum = random.randrange(0,92)
anNum = random.randrange(0,32)
print"what is your name?"
myName = raw_input()
if myName == 'cole' or myName == "Cole":
print"Your nickname is Cole the Amazing Unicorn"
time.sleep(1)
playAgain(a, b, c)
#a = allDefiningStuff b = animals
nickname = (myName.title() + " the " + a[adNum] + " " + b[anNum])
print("Your nickname is " + nickname)
def adjectiveObject(self, a, b, c):
print"what is your name?"
myName = raw_input()
if myName == 'cole' or myName == "Cole":
print"Your nickname is Cole the Amazing Enigma Machine"
time.sleep(1)
playAgain(a, b, c)
adNum = random.randrange(0,92)
adObj = random.randrange(0,42)
#a = allDefiningStuff b = objects
nickname = (myName.title() + " the " + a[adNum] + " " + b[adObj])
print("Your nickname is " + nickname)
def nameAnimal(self, a, b, c):
print"what is your name?"
myName = raw_input()
if myName == 'Cole' or myName == "cole":
print"Your nickname is Cole the Unicorn"
time.sleep(1)
playAgain(a, b, c)
anNum = random.randrange(0,32)
#a = animals
nickname = (myName.title() + " the " + a[anNum])
print("your nickname is " + nickname)
# def nameObjects(self, a)
#play again function
def playAgain(a, b, c):
print"Would you like another nickname?"
playagain = raw_input()
if playagain == 'yes' or playagain == 'Yes':
print"Thought so"
time.sleep(1)
main(a, b, c)
if playagain == "no" or playagain == 'No':
print"well skrew you too"
for i in range(1,1000000):
print 1000000 - i
time.sleep(1)
#function
def main(a, b, c):
global n
n = nicknameTypes()
print" "
print"What kind of nickname would you like?(1-4)"
print"nickname types:"
print" 1: adjective"
print" formatting: yourName the randomAdjective"
print' '
print" 2: adjective animal"
print" formatting: yourName the randomAdjective randomAnimal"
print' '
print" 3: adjective object"
print" formatting: yourName the randomAdjective randomObject"
print' '
print" 4: animal"
print" formatting: yourName the randomAnimal"
print' '
ask(a, b, c)
#fuction that asks the type of nickname
def ask(a, b, c):
type = int(input())
n = nicknameTypes()
things = False
if type == 1:
things = True
n.adjective(a, b, c)
if type == 2:
things = True
n.adjectiveAnimal(a, b, c)
if type == 3:
things = True
n.adjectiveObject(a, b, c)
if type == 4:
things = True
n.nameAnimal(a, b, c)
elif things == False:
print"What was that?"
ask(allDefiningStuff, animals, objects)
time.sleep(1)
playAgain(a, b, c)
#start of actually doing things
print("Hola! I'm a stalker so I know that the date is " + time.strftime("%m/%d/%Y"))
print"Do you wanna know how I know that?"
wannaKnow = raw_input()
if wannaKnow == 'yes' or wannaKnow == "Yes":
print"Because I'm a god"
time.sleep(1)
if wannaKnow == 'no' or wannaKnow == 'No':
print'well skrew you too'
time.sleep(1)
main(allDefiningStuff, animals, objects)
@cddelong6626
Copy link
Author

Your programs are bad! Booooooo!

@Psych714
Copy link

lel

@cddelong6626
Copy link
Author

Amazing profile pic dood

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment