Giter VIP home page Giter VIP logo

hangman1-1's Introduction

Hangman - Game

Introduction

Project milestone 3 for Code Institute Full-stack development program: Python Terminal.
Hangman is a Python terminal game, which runs in the Code Institute mock terminal on Heroku. The main goal of the game is to guess letters in order to find the word that the computer randomly selects.

Live Project Here

Frameworks - Libraries - Programs Used

  • Git
    • Git was used for version control by utilizing the Gitpod terminal to commit to Git and push to GitHub
  • GitHub
    • GitHub is used to store the project's code after being pushed from Git
  • Heroku
    • Heroku was used to deploy the live project
  • VSCode
    • VSCode was used to create and edit the website
  • PEP8
    • The PEP8 was used to validate all the Python code

Testing

PEP 8 Online

The PEP8 Validator Service was used to validate every Python file in the project to ensure there were no syntax errors in the project.

PEP8.

  • No errors or warnings were found during the testing of the code in PEP8

    Functionality

  • The terminal has no issues and is working properly

  • The typewriter starts typing at the right time and is working correctly

  • The input for name and city have the right behaviour and shows the user an alert if the input is empty

  • The game rules appear without any issues after the player submits their name and city

  • The option to press any key to start a game is running well

  • The game runs without any issues and as expected

  • At the end of the game, the Leaderboard is updating correctly

  • All the menu options are working without any fails

Bugs

Python Lines too Long

Deploying this Project

  • This site was deployed by completing the following steps:
  1. Log in to Heroku or create an account
  2. On the main page click the button labelled New in the top right corner and from the drop-down menu select Create New App
  3. You must enter a unique app name
  4. Next select your region
  5. Click on the Create App button
  6. The next page is the project’s Deploy Tab. Click on the Settings Tab and scroll down to Config Vars
  7. Click Reveal Config Vars and enter port into the Key box and 8000 into the Value box and click the Add button
  8. Click Reveal Config Vars again and enter CREDS into the Key box and the Google credentials into the Value box
  9. Next, scroll down to the Buildpack section click Add Buildpack select python and click Save Changes
  10. Repeat step 8 to add node.js. o Note: The Buildpacks must be in the correct order. If not click and drag them to move into the correct order
  11. Scroll to the top of the page and choose the Deploy tab
  12. Select Github as the deployment method
  13. Confirm you want to connect to GitHub
  14. Search for the repository name and click the connect button
  15. Scroll to the bottom of the deploy page and select the preferred deployment type
  16. Click either Enable Automatic Deploys for automatic deployment when you push updates to Github

Forking This Project

  • Fork this project by following the steps:
  1. Open GitHub
  2. Click on the project to be forked
  3. Find the Fork button at the top right of the page
  4. Once you click the button the fork will be in your repository

Cloning This Project

  • Clone this project by following the steps:
  1. Open GitHub
  2. Click on the project to be cloned
  3. You will be provided with three options to choose from, HTTPS, SSH, or GitHub CLI, click the clipboard icon in order to copy the URL
  4. Once you click the button the fork will be in your repository
  5. Open a new terminal
  6. Change the current working directory to the location that you want the cloned directory
  7. Type git clone and paste the URL copied in step 3
  8. Press Enter and the project is cloned

Credits

Content

  • All the content in the game is original
  • The terminal function and template for the deployable application was provided by Code Institute - Template
  • The Python code for the typewriter was taken from the following tutorial: Kwasii

Information Sources / Resources

hangman1-1's People

Contributors

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