Make sure you have Python installed on your system. This project was created in Python 3.
- Download or clone the repository to your local machine.
- Navigate to the directory where you downloaded/cloned the project.
- Run the game with the following command:
python hangman_game.py
- Follow the game's instructions. You will be prompted to enter your name, and then the game will start.
- The game has a theme of people's names.
- You have 7 wrong guesses before losing the game.
- Try to guess the hidden word by typing letters.
- If you guess all the letters in the word, you win the game.
- If you make 7 errors, you lose the game.
- hangman_game.py: The main code of the game.
- create_secrets_words.py: Generates secret words and saves them in a secrets_words.txt file.
This project served as an opportunity to practice object-oriented programming in Python. It also demonstrates the utilization of Python features such as file creation, data insertion, and the use of libraries like Faker. The Faker library was employed for generating random names, adding an element of unpredictability and fun to the game.
Have fun playing! (: