-
A hangman game application where the player will have to guess letters (A-Z) to form the words on the line, If the player will have to gusses the right letter that is within a word. The letter will appear on its correct posistion. The player will then guess the correct world until the man is hung when this appear the game will be done.
-
The hangman game will include a login and sign up, this will be stored in MogoDB.
-
Link to webpage thehangmangame - you can view the live site with this link.
-
The player of the hangman game will have to input a command into the mock terminal, when they enter a letter into the game which they will have gussed it will infrom the user if the letter they have enterd is the correct letter or word they have gussed. If it is the correct word they will have won the game if it is the incorrect letter or word an error message will then display it self and the user will then be asked to resubmit thier choice again.
-
wireframe (image)
- The game should be easy to play
- The game be fun for the user to get them to keep coming back
- Challenge the player by adding lives to keep the user intersted in the game
Target Audience
- player 16 and over
- I love for spelling
- Can view lives while playing the game
- the user has a certain amount of lives before the game is over, it can be seen while the player is playing the game, it is also represtend along side the hangman being built at each turn when a life is lost.
- Can view the rules of the game
- the words will be picked in randomly from a word list.
- the number of letters in a word will be showen by _ _ _ _ .
- Game will check invalid inputs
-
all the inputs that the player will enter , checks will run to ensure that the is no invalid inputs that have been submitted - all invalid inputs will be followed by a error message letting the player know to try again.
-
Features that i could have done to improve the game.
-
Banner
-
Main Menu
-
Login
-
Sign Up
-
Support
- Languages
Python
- The testing which i have done for the hangman game project are :
-
I tested the python code using a PEP8 linter website and then i fixed any erros. (http://pep8online.com/)
-
I tested in the terninal and also on the site heroku which i used to deploye the site.
-
I manually tested the user inputs by entering the wrong data to confrim any error messages.
-
PEP8 - No errors returned from (http://pep8online.com/).
-
Deployment
The website was deployed using GitHub to Heroku by following these steps:
- Create an account at heroku.com
- Create a new app, add app name and your region
- Click on create app
- Go to "Settings" Under Config Vars, add your sensitive data (the MongoDB URL for example) For this project, set buildpacks to and in that order. Go to "Deploy" and at "Deployment method", click on "Connect to Github" Enter your repository name and click on it. Choose the branch you want to buid your app from, and click "Deploy branch". You can for fork the repository by following these steps:
Go to the GitHub repository Click on Fork button in upper right hand corner You can clone the repository by following these steps:
Go to the GitHub repository Locate the Code button above the list of files and click it Select if you prefere to clone using HTTPS, SSH, or Github CLI and click the copy button to copy the URL to your clipboard Open Git Bash Change the current working directory to the one where you want the cloned directory Type git clone and paste the URL from the clipboard ($ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY) Press Enter to create your local clone
-
Code Institute for the mock terminal for the deploy to a live site.
-
[Python Hang Man tutorial] :
-
- ASCII Art Generator - for creating word art for game
- code Institute mentors who adived and thier guidance and support on the completion of this project.