-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a89983f
commit 52e048b
Showing
1 changed file
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,42 @@ | ||
# hangman | ||
Hangman | ||
A word puzzle game made using Python and Tkinter. | ||
# Hangman | ||
|
||
Hangman is a simple word guessing game. Players try to figure out an unknown word by guessing letters. If too many letters which do not appear in the word are guessed, the player is hanged (and loses). | ||
This repository contains multiple implementations of the classic Hangman game: | ||
|
||
- **HangmanGUI.py**: A graphical user interface version using Python and Tkinter. | ||
- **hangman.py**: A command-line version using Python 3. | ||
- **hangman-1.py**: A command-line version using Python 2. | ||
- **index.html**: A web-based version using HTML, CSS, and JavaScript, hosted on GitHub Pages. | ||
|
||
## How to Play | ||
|
||
### GUI Version | ||
1. Ensure you have Python and Tkinter installed. | ||
2. Run the game: | ||
``` | ||
python HangmanGUI.py | ||
``` | ||
### Command-Line Version (Python 3) | ||
1. Ensure you have Python 3 installed. | ||
2. Run the game: | ||
``` | ||
python hangman.py | ||
``` | ||
### Command-Line Version (Python 2) | ||
1. Ensure you have Python 2 installed. | ||
2. Run the game: | ||
``` | ||
python hangman-1.py | ||
``` | ||
### Web Version | ||
Visit the [GitHub Pages](https://abhrankan-chakrabarti.github.io/hangman/) to play the web version of the game. | ||
## Contributions | ||
Feel free to fork this repository and make your own changes. Pull requests are welcome! | ||
## License | ||
This project is licensed under the MIT License. |