kartik4949 / hangman_terminal

A small hangman game created in Python for fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hangman_terminal

A small hangman game created in Python for fun

How it works

Randomly select a file from the database folder, then read the file and randomly select a line, after that take that line to play as the secret word (if it's too hard to understand, please see main.py, thank you!)

How to use

Make sure you have installed the Python interpreter before continuing

Navigate to the directory you've downloaded this and simply type

python main.py

in the Command Prompt or a terminal. Choose the "New game" option and show off your guessing skills. I've provided 2 sample files in the database folder for you to start off.

Add new words to the database

If you want more words because you've cycled through it all, or just want to challenge yourself with long and complicated words, then please follow the guide below:

  • Step 1: Navigate to the database folder.
  • Step 2: Add your text file, with the filename being the subject of the words in that text file.

Warning on adding new words

  • Please add words that are based off the English alphabet, otherwise Python will not be able to recognize the words you given.
  • Add one word per line.
  • Don't add spaces to the word. You can still play it but it will rather be confusing.

Bug fixes and contributions

I am constantly adding new features and fixing to this app. If you found a bug, please don't hesitate to create an issue, or if you know the fix, feel free to contribute to this repository.

Screenshots

Welcome screen Level screen Playing Correct guess Wrong guess Player won Credits screen

License

hangman_terminal is licensed under GNU General Public License v3.0
Copyright (C) 2021 tlegx
For more information, please see LICENSE

About

A small hangman game created in Python for fun

License:GNU General Public License v3.0


Languages

Language:Python 100.0%