Giter VIP home page Giter VIP logo

hangman's Introduction

HANGMAN GAME

Video Demo

Description

Hangman Game is a terminal-based game implemented in Python. It allows players to guess letters to uncover a hidden word, with each incorrect guess leading to the drawing of a hangman. The word to be guessed is randomly chosen from a list of movies sourced from IMDb's top 100 movies list (as of August 2022).

The game consists of a main function and four other subprograms/functions: select_movie, question, game, and get_result. These functions are called from the main function in the respective order to control the flow of the game.

Project Requirements

  • The project must be implemented in Python.
  • It should have a main function and at least three other functions, each accompanied by tests that can be executed with pytest.
  • The main function should be in a file called project.py, located in the root folder of the project.
  • The three required custom functions (other than the main function) should also be in project.py and defined at the same indentation level as the main function.
  • The test functions should be in a file called test_project.py, also located in the root folder of the project. The test functions should have the same name as the custom functions, prepended with test_.
  • Additional classes and functions can be implemented as desired.
  • Any pip-installable libraries required by the project should be listed, one per line, in a file called requirements.txt in the root of the project.

Usage

  1. Clone the repository: git clone https://github.com/aviiciii/hangman-game.git
  2. Install the required dependencies using pip: pip install -r requirements.txt
  3. Run the game by executing project.py in the terminal: python project.py
  4. Follow the prompts to play the game and guess the hidden word.
  5. Have fun playing Hangman!

Contributions

Contributions to this repository are generally not accepted, as the project was developed as part of a course assignment. However, if you have suggestions or improvements specific to this project, feel free to open an issue or submit a pull request. Your feedback can help enhance the game and improve the user experience.

License

This project is licensed under the MIT License. Please see the LICENSE file for more information.

Enjoy playing Hangman and challenge yourself to guess the hidden words!

hangman's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.