Inspiration

My siblings wanted an offline game to play during our 4 hour flight with no in-flight entertainment system, hence Hangman.

What it does

It stores previous player information and previous plays in an SQL database and the players can view who holds the current high score, this adds a sense of competition too. The game runs on Python and is very interactive.

How I built it

It's fully coded in Python and I used Visual Studio Code for the same. I had to import the mysql connector module too of course, since all data is stored in SQL. I started with defining the function for the game itself, and then moved on to the scores and storing information in a database.

Challenges I ran into

The little man being hanged in the game is just a stick figure made using letters and symbols but was, in my opinion the most challenging thing in the project.

Accomplishments that I'm proud of

I think that the use of loops was impressive and that I incorporated MySQL in the project quite well.

What I learned

Database management and how to import and use the mysql connector module.

What's next for Hangman

I would like to use tkinter to improve the GUI to make the game more appealing

Share this project:

Updates