Skip to content

Instantly share code, notes, and snippets.

View charlesgmoore's full-sized avatar

Charles G. Moore III charlesgmoore

View GitHub Profile
@charlesgmoore
charlesgmoore / magic_8_ball.py
Created December 5, 2014 04:42
magic_8_ball
#!/usr/bin/env python3.4
import time
import random
import os
os.system('clear')
play_again = 'y'
answers = ["Yes, most definitely!", "The chances are high!", "Not likely!", "May the odds be ever in your favor.", "You got no shot, kid.", "Try it out and see!", "23% of working", "99.9% success rate", "Congratulations, yes!", "Ask a probably question," "Ask again later", "Better not tell you now", "Cannot predict now", "Concentrate and ask again", "Don't count on it"]
@charlesgmoore
charlesgmoore / 99_bottles.py
Created December 4, 2014 07:05
99_Bottles
#!/usr/bin/env python3.4
#http://www.reddit.com/r/beginnerprojects/comments/19kxre/project_99_bottles_of_beer_on_the_wall_lyrics/
list = range(1, 100)
for i in reversed(list):
if i == 1:
print("Take one down, pass it around", i, "bottle of beer on the ground\n")
else:
print("Take one down, pass it around", i, "bottles of beer on the ground\n")
@charlesgmoore
charlesgmoore / random_number.py
Created December 4, 2014 06:26
random_number.py
#!/usr/bin/env python3.4
##This game should assign a random number and tell you if you are high or low
import random
import os
os.system('clear')
play_again = 'y'
while play_again != 'n':
#Generate random number
x = random.randrange(100)