Code Challenge 10 - Build a Hangman Game

Posted by PyBites on Mon 13 March 2017 in Challenges • 2 min read

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.

Bonus

  • Use persistence to keep track of scores (invent your own system) and report when the user breaks a new record.

  • We focus on the logic so command line is the required interface, however if you like to wrap this into a GUI, feel free ...

To follow along with our challenges

To keep it 'DRY' we abstracted the instructions out into an INSTALL.md 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


See an error in this post? Please submit a pull request on Github.

Join our community and grab our Become a Better Python Developer cheat sheet. Learn Python. Receive bonus material. Challenge yourself!