Skip to content

Instantly share code, notes, and snippets.

Avatar

XChrisUnknownX

View GitHub Profile
@XChrisUnknownX
XChrisUnknownX / Blade_2018.py
Last active May 30, 2018
One of the first programs I made learning simple things like defining functions and control flow.
View Blade_2018.py
import random
import time
print("""Hello. My name is Blade.
I am a computer program written on April 14, 2018""")
name = input("""Please tell me what I should call you. """)
#Written by Christopher Day in April 2018
#nom nom nom nom nom nom nom nom nom nom nom
#this is the sound of my program eating your computer.
#nom nom nom nom nom nom nom nom nom nom nom
@XChrisUnknownX
XChrisUnknownX / LoveSingAlong.py
Created May 30, 2018
Silly simple sing along sung to the tune of 99 bottles of beer on the wall. You can edit it depending on your preferences (boyfriend/girlfriend, word choice.)
View LoveSingAlong.py
import time
count = 10
print("I created this sing along program for my girlfriend, because the love never ends.")
love = open("ILoveMyGirlfriend.txt", "w")
love.write("""I created this sing along program for my girlfriend, because there's a lot of love.
""")
time.sleep(5)
love.close()
time.sleep(3)
while True:
View passwordcreator.py
import time
import random
char = "zero"
letters = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
numbers = ["0","1","2","3","4","5","6","7","8","9"]
while True:
print("Input password length.")
try:
length = int(input())
View battlequest.py
import time
import random
print("""You are the great magician.
Your exploits are known throughout the world.""")
badguyhealth = 0
goodguyhealth = 20
goodguylevel = 6
goodguylevels = str(goodguylevel)
experience = 600
goodguylevel = experience / 100
View simplified8ball.py
import time
import random
while True:
print("The magic 8 ball will now let you ask a question.")
print("")
dinosaurs = input(" ")
print("")
if "?" in dinosaurs:
pass
else:
View roulette.py
roulettenumbers = ["1","2","3","4","5","6","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","0","00"]
#roulette numbers is a defunct list.
spins = 0
import time
import random
spacebar = " "
one = "1"
two = "2"
three = "3"
four = "4"
View continuousletters.py
import time
import random
char = "zero"
letters = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
numbers = ["0","1","2","3","4","5","6","7","8","9"]
while True:
which = random.choice(["number","letter"])
if which == "number":
View chargenfunctionAugust2018.py
def charactergen():
#SECTION BELOW PICKS GENDER AND NAME
import random
malenames = ["Gary", "Joshua",
"Christopher","Noah","Matthew","Michael","Scott","Anthony","Salvatore","William","Frank","Mark","Thomas","Carl","Claude","Vincent","James","Nathan","Stuart","Steven","Albert","Adam","Charles","Darius","Greg","Hank","Harold","Paul","Peter","Patrick","Constantine","Kevin","Robert","Raymond","Benjamin","Yuri","Jacob","Oswald","Robin","Nicholas","Jeremy","Leslie","Arnold","Jack","Bruce"]
femalenames = ["Jeanine","Joy","Jovanna","Christina","Christine","Helen","Patricia","Gwen","Whitney","Dawn","Jeanine","Miriam","Leyla","Brittany","Amy","Felicia","Whitney","Kayla","Karen","Yolanda","Yuri","Hannah","Deanna","Mary","Marie","Jane","Sara","Reyna","Laura","Wanda","Wilma","Brenda","Rebecca","Octavia","Caitlyn","Kate","Penelope","Leslie","Robin","Darlene","Doreen","Danielle","Rachel","Rosemarie","Anna","Stephanie","Nancy","Delilah","Diane","Renee","Beatrice","Sasha","Elle","Marjorie","Madeline","Theresa","Trish","Ja
View chargenfunctionAugust2018-2.py
def charactergen():
#SECTION BELOW PICKS GENDER AND NAME
import random
malenames = ["Gary", "Joshua",
"Christopher","Noah","Matthew","Michael","Scott","Anthony","Salvatore","William","Frank","Mark","Thomas","Carl","Claude","Vincent","James","Nathan","Stuart","Steven","Albert","Adam","Charles","Darius","Greg","Hank","Harold","Paul","Peter","Patrick","Constantine","Kevin","Robert","Raymond","Benjamin","Yuri","Jacob","Oswald","Robin","Nicholas","Jeremy","Leslie","Arnold","Jack","Bruce"]
femalenames = ["Jeanine","Joy","Jovanna","Christina","Christine","Helen","Patricia","Gwen","Whitney","Dawn","Jeanine","Miriam","Leyla","Brittany","Amy","Felicia","Whitney","Kayla","Karen","Yolanda","Yuri","Hannah","Deanna","Mary","Marie","Jane","Sara","Reyna","Laura","Wanda","Wilma","Brenda","Rebecca","Octavia","Caitlyn","Kate","Penelope","Leslie","Robin","Darlene","Doreen","Danielle","Rachel","Rosemarie","Anna","Stephanie","Nancy","Delilah","Diane","Renee","Beatrice","Sasha","Elle","Marjorie","Madeline","Theresa","Trish","Ja
View probability experiment.py
import time
import random
char = "zero"
letters = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
numbers = ["0","1","2","3","4","5","6","7","8","9"]
sevens = "mmmmmmm"
masternumber = []
for n in sevens:
which = random.choice([letters,numbers])