Skip to content

zensilva/HangMan.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation


Hangman


By: Zen K. Silva

IntroductionHow to PlayDesign and FunctionalityEnd of GameObjective Oriented ProgrammingLicense


© [2023] [Z.Silva]
All Rights Reserved.

Introduction

The Hangman Game is a classic word-guessing game where players try to guess a hidden word by suggesting letters within a certain number of attempts. It is a fun and challenging way to test your vocabulary and guessing skills.

How to Play

  1. Run the script.
  2. Enter your name and choose the difficulty level (1-10) to determine the number of lives.
  3. The game will start, and you need to guess the letters to complete the word.
  4. Enter a letter to guess.
  5. If the letter is correct, it will be revealed in the word.
  6. If the letter is incorrect, you will lose a life.
  7. Keep guessing letters until you either complete the word or run out of lives.

Design and Functionality

The game is implemented in Python and utilizes random word selection from a predefined word list. It provides a user-friendly interface to input guesses and provides feedback on correct and incorrect guesses.

The game tracks the number of remaining lives and updates the word display as the player makes guesses. It also prevents duplicate guesses and provides relevant messages for game outcomes (win or loss).

End of Game

  • If you complete the word before running out of lives, you win the game.
  • If you run out of lives before completing the word, you lose the game.

Objective Oriented Programming

The Hangman Game employs principles of object-oriented programming to organize the code into classes and functions, enhancing code modularity and reusability.

The game code is well-structured and documented, making it easy to understand and extend for future enhancements or modifications.

License

This software is the property of the copyright holder and is protected by copyright laws. All rights are reserved.

The copyright holder grants no implied or express license for the use, copying, modification, distribution, or reproduction of this software, in whole or in part, without the prior written permission of the copyright holder.

Any unauthorized use, copying, modification, distribution, or reproduction of this software, in whole or in part, is strictly prohibited and constitutes a violation of copyright law. Such unauthorized use may result in civil and/or criminal penalties, including but not limited to legal action and monetary damages.

To obtain permission for any use, copying, modification, distribution, or reproduction of this software, please contact the copyright holder at the following address:

[email protected]


By using this software, you acknowledge that you have read and understood the terms of this license and agree to comply with all applicable copyright laws. Failure to abide by the terms of this license may subject you to legal consequences.

About

This was my very first python program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages