Skip to content

This repository contains the code and documentation for a Hangman game created by ZeroTrustX as a programming project in Python. It includes user authentication, scoring, levels, and features tailored for both B1/B2 English learners and IT/cybersecurity enthusiasts.

Notifications You must be signed in to change notification settings

zeroxtrust/PythonHangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Hangman Game in Python

Overview

This project consists of two versions of the classic Hangman game, developed by ZeroTrustX. The project was designed to offer both educational and entertaining experiences by implementing interactive gameplay with progressive challenges.

Versions

  1. Version 1: Tailored for non-native English speakers, using B1/B2 vocabulary words.
  2. Version 2: Designed for IT and cybersecurity enthusiasts, with technical terms and definitions.

Features

Common Features

  • User Management:
    • Register and log in with unique usernames and passwords.
    • Secure data handling and persistence.
  • Gameplay Mechanics:
    • Random word selection from predefined lists.
    • Timer-based gameplay (30 seconds per guess).
    • Limited incorrect guesses (5 per level).
    • Progressive levels with increasing difficulty.
  • Scoring System:
    • Tracks individual performance.
    • Maintains a high-score leaderboard.

Version-Specific Features

Version 1: B1/B2 English Words

  • Focuses on vocabulary enhancement for non-native English speakers.
  • Includes words with clear definitions to aid learning.

Version 2: IT and Cybersecurity Words

  • Aimed at students and professionals in IT and cybersecurity.
  • Includes specialised terms with educational definitions.

Installation and Usage

  1. Clone this repository:
    git clone https://github.com/zeroxtrust/PythonHangman.git
  2. Navigate to the project directory:
    cd HangmanGame
  3. Run the desired version:
    • Version 1:
      python Hangman_Version1.py
    • Version 2:
      python Hangman_Version2.py

How to Play

  1. Register as a new user or log in with existing credentials.
  2. Choose an option from the main menu:
    • Start a new game.
    • View high scores.
    • Play in team mode (if available).
    • Log out.
  3. During gameplay:
    • Guess letters to complete the word.
    • Each correct guess earns points.
    • Complete all the letters of the word to progress to the next level.

Testing

Both versions have been thoroughly tested for:

  • User registration and login functionality.
  • Word guessing mechanics and score tracking.
  • Handling edge cases, such as duplicate usernames and invalid inputs.

Future Enhancements

  • Implement difficulty settings for broader audience appeal.
  • Add hints or suggestions for challenging words.
  • Enhance security by encrypting user data.

Acknowledgments

This project was inspired by resources such as:

  • W3Schools Python Tutorials
  • Programming with Mosh - Python for Beginners
  • Real Python Tutorials

Author

ZeroTrustX

Hangman

About

This repository contains the code and documentation for a Hangman game created by ZeroTrustX as a programming project in Python. It includes user authentication, scoring, levels, and features tailored for both B1/B2 English learners and IT/cybersecurity enthusiasts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages