Giter VIP home page Giter VIP logo

hangman2-1's Introduction

Hangman Game!

It is a game of hangman about Marvel Heroes and DC Heroes that you play against the computer.

If you can guess the right heroes/villains with one letter before you run out of guesses, you win,
In the event that you lose, you can try again if you are victorious against the computer

image

How to play

A computer, the "host," creates/generate a secret word,
Then YOU try to guess the word by asking what letters are in it.
Every wrong guess, however, puts them one step closer to losing and
Each right guess brings them closer to winning You win if all your guesses are correct

Features

  • Choose category
    • You can Choose 2 different category
    • Computer generate different Hero/villain

image

  • Show how many chance you have left
    • Every guessed letter show how many chances you have left
    • Tell you if you have guessed right or wrong
    • How many you had from the beginning

image

  • The Result
    • Tell if you have already guess same letter
    • Tell you what word you have get at the end
    • Tell if you win or lose and the secret word

image

  • Play again

    • A choose if you want to play again or exit when the games are done

    image

Futures implement

  • More category to choose between
  • Build in score board that shows how many times you or computer win
  • Picture of hangman with detail of when you guess wrong letter

Data model

image

Testing

  • Tested the code through PEP8 without any problem
  • tested the game on Heroku terminal and it working fine
  • I confirmed the games were easy to understand and play

Bugs

  • Took a while to realise that made the container with() instead of []

image

  • But after google and searching figured out and change the () to [] and everything worked.

Unfixed Bugs

No Unfixed Bugs

Validator Testing

  • PEP8 no error image

Deployment

  • This site was published through GitHub pages. To promote the site, follow these steps:
  1. In the GitHub repository, navigate to the Settings tab
  2. From the source section drop-down menu, select the Main Branch
  • Project through heroku terminal
  1. Go to Heroku.com and log in
  2. Create App and give it a name
  3. Go to Settings and go to Config Vars and set KEY:port and Value:8000 and ADD
  4. add buildpack first Heroku/python and then Heroku/nodejs
  5. then go to Deploy and choose deployment method and choose github
  6. app connected and Choose your repository and Connect
  7. Go down to Manual deploy and klick Deploy Branch
  8. klick view!!

Here is the link HANGMAN GAME

Credits

Contents

  • How to create function, import and tutorial from youtube for hang hangman here
  • Taken some code from icomag.com and rewrite it!
  • Taken som ideer from mardiyyah.medium.com
  • Code instuites Template

Media

hangman2-1's People

Contributors

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