Giter VIP home page Giter VIP logo

hangmanproject's Introduction

Terminal Hangman

Termainal hangman is a Python language terminal game.

The users main goal is to guess the word either letter by letter or by guessing the full word before their maximum tries had run out.

How to play

Termainal hangman is based on the classic pen and paper hangman game.

Like the original game the user must guess a word that the computer has randomly selected from the "words.py" list.

The unknown letters are displayed as _ but when the correct letter is guessed that letter will replace the _.

The user must guess the letter before their maximum turns runs out, the user will only win when the word is either guessed with individual letters or if the user guesses the full word.

Features

  1. Randomisation: The computer has a set list of over 500 words and will pick out a word to be guessed at random.
  2. Hidden Words: Once a word is chosen the word will be hidden and replaced with a _ the amount of underscores represents the amount of letters in the word. Once guessed the _ is replaced with the guessed letter.
  3. User Input: The user can input any letter or word they like, if the user selects a word or letter they previously guessed the will be prompted with a warning that says so they will not lose a life for this.

Future Features

  1. GUI Hangman: A gui hangman would represent the amount of lifes that the user has left to guess.

Testing

I have manually tested this project by doing the following:

  1. Passed the code through the PEP8 linter and confirmer there are no issues
  2. Given inputs that are invalid such as numbers, characters and symbols, there are no issues

Bugs

Solved Bug:

The computer couldn't recognise the symbol - which would have been used in several words, I removed these words from the words list

Remaining Bugs

None

Validator Testing:

Passed the PEP8 Validator

hangmanproject's People

Contributors

jpitman26 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.