Skip to content

anantdark/hangman

Repository files navigation

hangman

A simple game with easy rules, written purely in python.

GUI and CLI versions available.

About the Game

HangMan is an interactive real world game. The game chooses an entirely random word,and the user tries to guess it by suggesting letters untill the hangman figure is completed.

GUI CLI
dg dd

RULES

  1. Number of Dashes represent the length of the word.
  2. At each correct guess the letter is placed at its original position in the word.
  3. User loses if the HangMan is completed.

Modules used-

  • pygame
  • rich
  • nltk

Use pip install -r requirements.txt to install the modules automatically.

Running the game

Currently the program is not packaged into exe or any other format, so you have to run the python file directly.
New contributers can implement packaging the game into an executable.

Recent Releases contain executable file for Linux.

For Linux

  • Run the executable.

    • You can download the latest executable file from releases
    • Make the file executable
      sudo chmod +x filename
      
    • Run the file ./filename

  • Run with python interpreter.

    • Install requisite modules(see modules section).
    • Navigate to either GUI/CLI folder and run python3 hangman.py

For Window

Dude use Linux 😉

  • There is no exe file for windows users. 🤐: (PRs Welcome)
  • Just replace python3 with python in the above steps.

Hacktoberfest2022

image

It is back again the time of the year to celebrate Hacktoberfest. This repository contains coding exercises that you can easily solve with basic knowledge in programming.

What is Hacktoberfest?

Every year in October, an open source event called Hacktoberfest inspires individuals all over the world to actively engage in and contribute to open source projects that are hosted on GitHub and GitLab. By taking part in this event, you may receive a free GitHub swag pack. You must submit 4 pull requests in order to receive that awesome swag pack.

Follow these step -:

  1. Complete the registartion over https://hacktoberfest.com/
  2. Rule are - https://hacktoberfest.com/participation/
  3. Fork this repository.
  4. The copy of main repository is on your PC/Desktop .

You can send your pull request to this repository.

Enjoy Hacking. All the best.

Want to contribute?

We welcome any contribution big/small, but do note that we are against plagiarism and low code quality.

For instance, avoid submitting a PR fixing a issue with spacing or a minor change, this hampers the spirit of hacktoberfest.

Take a look through some of our issues you can resolve, or create your own issue https://github.com/anantdark/hangman/issues

Our Top Contributors