Skip to main content

Home/ Puerto Rico Python Interest Group/ Group items tagged letter

Rss Feed Group items tagged

Kevin Shockey

A simple hangman game made with Python 2.7.3 · GitHub - 0 views

  •  
    "class Hangman(): def __init__(self): print "Welcome to 'Hangman', are you ready to die?" print "(1)Yes, for I am already dead.\n(2)No, get me outta here!" user_choice_1 = raw_input("->") if user_choice_1 == '1': print "Loading nooses, murderers, rapists, thiefs, lunatics..." self.start_game() elif user_choice_1 == '2': print "Bye bye now..." exit() else: print "I'm sorry, I'm hard of hearing, could you repeat that?" self.__init__() def start_game(self): print "A crowd begins to gather, they can't wait to see some real" print "justice. There's just one thing, you aren't a real criminal." print "No, no. You're the wrong time, wrong place type. You may think" print "you're dead, but it's not like that at all. Yes, yes. You've" print "got a chance to live. All you've gotta do is guess the right" print "words and you can live to see another day. But don't get so" print "happy yet. If you make 6 wrong guess, YOU'RE TOAST! VAMANOS!" self.core_game() def core_game(self): guesses = 0 letters_used = "" the_word = "pizza" progress = ["?", "?", "?", "?", "?"] while guesses < 6: guess = raw_input("Guess a letter ->") if guess in the_word and not in letters_used: print "As it turns out, your guess was RIGHT!" letters_used += "," + guess self.hangman_graphic(guesses) print "Progress: " + self.progress_updater(guess, the_word, progress) print "Letter used: " + letters_used elif guess not in the_word and not(in letters_used): guesses += 1 print "Things aren't looking so good, that guess was WRONG!" print "Oh man, that crowd is getting happy, I thought you" print "wanted to make them mad?" letters_used += "," + guess self.hangman_graphic(guesses) print "Progress: " + "".join(progress) print "Letter used: " + letters_used else: print "That's the wrong letter, you wanna be out here all day?" print "Try again!" def hangman_graphic(self, guesse
Kevin Shockey

Commitment of In-Kind Contribution | Grant-Writing-Proposals.com - 0 views

  •  
    "We are pleased to confirm that we will provide in-kind contributions of a value totaling (amount in dollars) for your project (project name) as proposed for funding under the U.S. Department of Education's Investing in Innovation (i3) Fund."
Kevin Shockey

NCTC Foundation Grants - 0 views

  •  
    "Dr.Eddie Hadlock, President North Central Texas College 1525 W. California St. Gainesville, TX 76240   Dear Dr. Hadlock:   I am writing to express support of NCTC's [name of project] proposal. The project you propose to establish will [State how the project will address community, industry, or educational challenges. Express your or your company's interest in the proposed project - how do its goals or objectives match your vision or mission?   If you have partnered with NCTC in the past, briefly describe the association and benefits received. If a student or a parent, give examples of how your association with NCTC has affected your life.]   Our [company or organization] is or [We are, I am] pleased to continue a relationship that is beneficial to us [me] and to the NCTC.   Sincerely,  "
1 - 7 of 7
Showing 20 items per page