Install AaditsHangman
with pip install AaditsHangman
.
This will install the module, and will also install other dependencies that this module needs.
Play the game by opening up some editor (or ig typing python
in terminal also works)
Then type this following code:
from AaditsHangman import Hangman
hangman = Hangman()
hangman.new_game()
A tkinter window should open on your screen.
Have Fun playing!
-
The computer will choose the word, and you have to guess it
-
There is a timer on the top right corner of the window. When you get the word OR you run out of tries, that timer will end. See how fast you can get it!
-
Instead of pressing submit on your window, you can just press
Enter
on your keyboard! -
The hangman is hung when you use up nine tries.
-
The
Submit
button automatically becomesNew Game
when the game is over. You can pressEnter
for that also.