Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.09 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.09 KB

Hangman

Introduction

Hangman is a classic game in which a player thinks of a word and the other player tries to guess that word within a certain amount of attempts.

This is an implementation of the Hangman game, where the computer thinks of a word and the user tries to guess it.

Usage / Installation

Clone the repository by running the following command inside a terminal

git clone https://github.com/IngaPosiunaite/hangman.git 

Then within the folder, run

main.py

What I've Learned

  1. Built an implementation of the Hangman game in Python
  2. Handled errors in user input and built the conditional logic to run the game
  3. Utilized Object-Oriented Programming (OOP) principles, including encapsulation and abstraction

File Structure

hangman/
│
├── main.py
├── hangman/
│   ├── __init__.py
│   ├── game.py
│   └── utils.py
├── tests/
│   └── test_hangman.py
└── README.md

Future Improvements

  1. Addition to let players play the game again
  2. Adding difficulty settings
  3. Graphical User Interface