Skip to content

Sick0Pat/Hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman

Programming with Python

This repository was created to collaboratively develop the popular game Hangman by the students of 7th semester of their Computer Science Degree at the Autonomous University of Baja California - Faculty of Accounting and Administration.

The game was to be done entirely using Python and each student had to collaborate by implementing a feature, an improvement or a bugfix through a pull request

ALGORITHM 💀🏃‍♂️💪


  • Show a welcome message in ASCII
  • Select dificulty
  • Choose a word from a list - PC.
  • Validate word
  • Display word output to users (i.e. "_ _ _ _ _ _ _")
  • Define number of opportunities
  • Draw a gallows
  • Ask for a letter
  • Verify letter and validate that it is part of the word
    • If the letter is part of the word, display it in its respective spot
    • Else, display used words and draw a body part in the gallows
  • Repeat until you guess the word or run out of opportunities