Welcome to the classic Hangman game, but this time in your own Visual Studio Code environment!
Hangman is a game where you try to guess a word letter by letter, but be careful with your failed attempts or our little Hangman will suffer the consequences!
In this game, the user, their password, the guessing word, and the number of attempts are stored in a MySQL database.
-
Register or Log In:
- When starting the game, you will be given the option to register or log in.
- If you are a new user, choose "Register" and pick a username and a secure password (it will be encrypted).
- If you already have an account, select "Log In" and enter your credentials.
-
Main Options:
- After logging in, you will be presented with two options: "Play" or "Delete Account."
- Choose "Play" to start a new Hangman game.
- If you decide to "Delete Account," confirmation will be requested, and if accepted, your account and data will be deleted.
-
Hangman Game:
- In the game, try to guess the hidden word by entering letters.
- Each correct letter will reveal its position in the word.
- Each incorrect letter will bring you closer to the limit of failed attempts. Watch out for Hangman!
-
Requirements:
- Make sure you have Python and MySQL installed on your system.
- You will also need the Python extension in Visual Studio Code.
-
Clone the Repository:
git clone https://github.com/SergioPinilla04/Python_web
-
MySQL Setup:
- Run the provided SQL script "ahorcado.sql".
-
Run the Game:
- In Visual Studio code, run the script "ahorcado5.py".
Feel free to contribute to the development of the game. You can open issues to report bugs or suggest new features.
This work is licensed under CC BY-NC-SA 4.0. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/