Giter VIP home page Giter VIP logo

simple-python-game's Introduction

Just a simple Hangman game!

Rules And how to play

  1. You get 6 failed guesses before you have to try again.
  2. When you are done you can press "Y" to play again and "N" to quit.
  3. Just press on the letter you want to use.
  4. Only letters no numbers.
  5. guessing the same letter twice counts as a guess.

How it should work!

If you select a letter that is in the word the letter you picked saves and the hangman does not animate. But if you guess the wrong letter it tells you that you selected the wromg letter and the hangman animates 1 out of 6 each failed guess (guessing same letter twice counts as a failed guess).

Testing

I've done manual testing to see if everything works correctly. I tried failing on purpose to see if it tells me that I either put the wrong letter or that I've used that letter allready and I check to see if it animates accordingly. I tried to Win to See if i does not animate when i guess the correct letters. I had issues that I wouldn't have noticed without the manual testing for example it could animate when I guessed the correct letter and not animate when guessing the wrong letter but still count as a try. All these mistakes/bugs should be fixed.

I have a few Errors according to http://pep8online.com/. These are the errors:

image

I tried ""(backslash) like it sais in the feedback from the assessor but when i did that i got another error. I have googled it and tried to fix this in other ways but when i did that there was allways another problem that accurd. Same for the linter errors if I changed anything the code broke in some way.

Source

only source I had was this Youtube video : https://www.youtube.com/watch?v=m4nEnsavl6w. The animiation in the constants.py file is taken from this youtube video.

Deployment

Was simple to deploy to heroku.

  1. Pressed on Create new app and followed the steps.
  2. Went to the deploy section immediately because I don't need config vars.
  3. Chose Github as deployment method.
  4. I searched for your github repository I wanted to connect and pressed on connect.
  5. Last step was to press on deploy branch and my game was deployed.

simple-python-game's People

Contributors

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