Giter VIP home page Giter VIP logo

artneto-game.hangman's Introduction

Hangman

Hangman is a Python terminal game, wich runs in the Code Institute mock terminal on Heroku.

Users can try to defeat the computer by identifying all of the letters in a word or predicting the word that the computer chooses at random. Users have just six attempts before getting "hanged" and losing all of their progress.

[Please find attached here the live version of my project.] (https://level-game.herokuapp.com/)

How to play

Users can try to defeat the computer by identifying all of the letters in a word or predicting the word that the computer chooses at random. Users have six attempts before getting "hanged" and losing all of their progress. If the user correctly guesses a letter in the word, it will be displayed on the terminal on the line in the right word position. In case the user loses and he cannot guess the word before finishing the six rounds a game over message will appear.

Features

  • After user input his name, he will be presented to the rules.

  • Random secret words will be masked by the signal "_".

  • The player can only guess 1 letter at the time.

    ScreenShot

  • Plays against the computer

  • User will notificed when he got a right or wrong answer guess.

  • Accept user input

    ScreenShot

    ScreenShot

  • The secret word will only be revealed at the end of the game.

Future features

  • Different levels.
  • Option to add multiplayers.

Testing

  • I manually evaluated this project by: * Running the code through a PEP8 linter and verifying there were no errors.

  • Given Invalid inputs including strings where numbers are allowed, out of bounds inputs, and the same input again.

  • Tested on my own terminal as well as the Heroku terminal at the Code Institute.

Bugs

  • At first I added the list of words in the run.py but to make the code more organised I created newords.txt file.

  • The game was only with one end-game message with no secret word revealed. I have added the option for the user see what is the secret word and also added one more funtion for game over message in order to be more clear about the result.

  • I also had some Misuse Expressions issues. which causes errors and did not allow it to execute the code correctly.

No bugs remaining.

Validator testing

Deployment

  • Steps for deployment
    • Fork or clone this repository
    • Create a new Heroku app
    • Set the buildbacks to Python and NodeJS in that order
    • Link the Heroku app to repository
    • Click on Deploy

Credits

Acknowledgements

I would like to thank Slack Community for their assistance with minor coding issues and Beatriz Amorim who tested my game and gave me excellent feedback based on her milestone submission.

artneto-game.hangman's People

Contributors

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