Skip to content

This repository contains an implementation of the Hangman game, where players challenge the computer to guess the secret word

Notifications You must be signed in to change notification settings

IngaPosiunaite/Hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

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

About

This repository contains an implementation of the Hangman game, where players challenge the computer to guess the secret word

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages