Code Challenge 10 - Build a Hangman Game

PyBites, Mon 13 March 2017, Challenges

codechallenges, game, github, hangman, learning, movies

This week, each one of you has a homework assignment ... - Tyler Durden (Fight club)

Hi Pythonistas, a new week, a new 'bite' of Python coding!

This week we are going to code the well-known Hangman game.

We think this is a nice challenge because you have to think about design, iteration, working with various data structures, keep state (class?), etc.

We provide you with some graphs and the topic will be movies: you get a top 100 of movies in a text file and code to load them into your program.

For the rest we kept the template pretty empty to not force you too much into one direction.

Of course if you have questions use the comments below. End of this week we discuss our solution and we hope we all learn a lot from each other.


To follow along with our challenges

To keep it 'DRY' we abstracted the instructions out into an page in our repo, see here. New or returning visitor, you should have all you need to get up and running.

And remember: there is no best solution, only learning more/ better Python. We're looking forward reviewing our and your solutions end of this week. Good luck and have fun!

Code Challenges Archive

See this page for all code challenges so far, if you have an interesting one you'd like to see featured contact us or open a GH Issue.

Keep Calm and Code in Python!

-- Bob and Julian

PyBites Python Tips

Do you want to get 250+ concise and applicable Python tips in an ebook that will cost you less than 10 bucks (future updates included), check it out here.

Get our Python Tips Book

"The discussions are succinct yet thorough enough to give you a solid grasp of the particular problem. I just wish I would have had this book when I started learning Python." - Daniel H

"Bob and Julian are the masters at aggregating these small snippets of code that can really make certain aspects of coding easier." - Jesse B

"This is now my favourite first Python go-to reference." - Anthony L

"Do you ever go on one of those cooking websites for a recipe and have to scroll for what feels like an eternity to get to the ingredients and the 4 steps the recipe actually takes? This is the opposite of that." - Sergio S

Get the book