Coding the Hangman game in Python, 1st solo project
This is the firt solo project of the BeCode's AI bootcamp using Python. We are asked to
code the Hangman game.

This project will allow to test our comprehension of the new material we learned during the firs two weeks of the training.
The code should be clean and use the concepts of class, attributes and methods, but also typing and regular expression. I imported the random and re packages. I created a Hangman class. Inside the class, I created attributes (the word to discover, the number of tries, the number of lives (remaining),...). Methods are also created as advised: design the play, start the plays and finish it either a game over or a well played game.
Lyes Rouabah
Started May 20th 2021. Deadline is May 21st at 4:30 pm.
- Not a good practice to define attributes at the class level itself. It is recommended to define attributes in the init part.
- Apply flake8 to the script.
- Simplify "^[a-zA-Z]$" by using "^[a-Z]$".