Skip to content

lyesds/hangman-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

hangman-python

Coding the Hangman game in Python, 1st solo project


-What

This is the firt solo project of the BeCode's AI bootcamp using Python. We are asked to code the Hangman game. hangman_pic

-Why

This project will allow to test our comprehension of the new material we learned during the firs two weeks of the training.


-How

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.

-Who

Lyes Rouabah


-When

Started May 20th 2021. Deadline is May 21st at 4:30 pm.


Feedback

  1. Not a good practice to define attributes at the class level itself. It is recommended to define attributes in the init part.
  2. Apply flake8 to the script.
  3. Simplify "^[a-zA-Z]$" by using "^[a-Z]$".

About

Hangman game self project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages