/Hangman-Project

A classic word game which relies on the random selection of words from a predefined list and guesswork by the player. (ft. very cute aesthetics)

Primary LanguagePython

Hangman Project

The purpose of this project is to create a virtual game of Hangman. This classic word game relies on the random selection of words from a predefined list and guesswork by the player. This game was made on Python with the help of the Pygame module to display real-time graphics and the Random module that chooses a random word from a list. I used concepts such as user-defined functions, while loops, for loops, if and else conditions, and methods from a few modules to complete this project.

The game aims to guess a random word by filling in letters into a series of blanks. With each incorrect letter guess, a new piece of the hangman figure (head, torso and each of the arms and legs) is drawn. The game ends when the player guesses the word or when he/she runs out of lives and the hangman stick figure is complete.

In a classic game of Hangman, the word to guess can be any common noun or popular proper nouns such as movie, song, celebrity names. The words used in my program have been classified into four distinct categories: Movies, Sports, Singers, and Animals.

Check it out!