Skip to main content

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

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

March Project Night - The Boston Python User Group (Cambridge, MA) - Meetup - 0 views

  •  
    "Come work on Python projects, get programming help, help others, and hang out. Bring your own project or work on one of the suggested projects below.  Everyone is welcome, all skill levels are encouraged. We often have tables dedicated to Learners, Django, Science, Hardware, etc. Friendly people will be here to help beginning Python programmers with language basics and practice. Audience: Everyone! All Python experience levels are welcome, and everything is self-paced. When: 6:30pm - 9:00pm on Monday, March 10th Location: Microsoft NERD Center One Memorial Drive, Cambridge, 02142 Food: Pizza will be provided! Things to bring: a wireless-enabled laptop and power cord. Also: we'll have more Python puzzles, and giveaways (including a hardware goodie from Ab Initio!). Need some project ideas? How about: Learning Python * The official Python tutorial * How to Think Like a Computer Scientist: Learning with Python * An introduction to Python through writing games * Learn Python the Hard Way Projects and competitions * Contribute to an open-source project that uses Python. Developers from OpenHatch, Twisted, and other projects are often here. If you contribute to an open source project that uses Python and want to help new contributors, let us know in a comment! * Use Python to participate in space exploration. * Unleash your inner DJ with the Echo Nest APIs. * Want to learn a Python web framework? Check out the Django tutorial."
Kevin Shockey

Best Buy Foundation: National Partnership Request For Proposals - 0 views

  •  
    "Best Buy Ignites Teen Potential through Technology For decades people have turned to Best Buy for answers to their technology questions. As a company, we aim to ignite human potential.  To support these efforts, the Best Buy Foundation provides underserved teens with access to technology to build 21st century skills and bridge the digital divide. As technology becomes more ingrained in our society, it is critical for youth to develop the necessary skills for future college and career success.  Sixty percent of the jobs that will be available in 10 years don't even exist today. As experts in technology, our goal is to leverage our knowledge, resources and talented Best Buy and Geek Squad employees to empower underserved youth and help prepare them for the future.   National Partner Overview Best Buy seeks nonprofit partners that create hands-on learning opportunities for underserved teens to engage them in learning, experimenting, and interacting with the latest technologies to build 21st century skills. The overall goal is to provide youth with access to new technologies and help them become interested and fluent in digital learning while developing skills to help better prepare them for future education and career success. Programs should help teens build 21st century skills by utilizing cutting-edge technology such as computers, digital cameras, video cameras and professional software in a wide range of areas including (but not limited to): Audio production (including music mixing & recording) Coding/3D printing Computer Maintenance and Repair Digital photography/graphic design Filmmaking & videography Maker Faires/hack-a-thons Mobile & game app development Programming Robotics Web site design    Grant Overview Best Buy is searching for national organizations with a demonstrated track record for building skill proficiency in technology through out-of-school time programs. The primary responsibilities of the nonprofit organization include: Workin
Kevin Shockey

vox-l-game - 0 views

shared by Kevin Shockey on 06 Feb 16 - No Cached
1 - 20 of 24 Next ›
Showing 20 items per page