Giter VIP home page Giter VIP logo

project2hangman's Introduction

Hangman

A simple take on the classic guessing game hangman. This verison has a single category where the player has 6 chances to guess which english premier leauge team that is the hidden word. The games rules and task is easy to understand and has a simple gallow picture that updates if the player answers wrong. Upon six wrong answers the full gallow picture is represented on the screen and the player can chose to start over again with a new randomly selcted team.

Content

Features

Design

Technologies Used

Testing

Deployment

Credits


Features

Hangman image

The hangman image starts out with a images of an empty gallow, when the player chose a letter that is not in the hidden word the images updates one bodypart at per wrong answer. The image was selected for its stickman style to keep it playful and not draw so much attention to some what macabre nature of the games name and the imagary tide to it.

Hidden word and keyboard

The games hidden word appears represented by blank lines in the center of the screen. The amount of lines represens the amount of letters in the randomly selected word. The keyboard serves as a clickable keyboard. When the player click a letter it gets inactivated, if the letter was a part of the hidden word it appears in its correct place on the dotted line, if the letter was not in the word one chance is subtracted from the total amount of trys avavlible to the player.

Reset button

The reset button dose pretty much what it says in the tin. It reverts back to the original state of the page, ie it resets the players chances, brings back the original gallow image, activates all the keyboard buttons and selects a new random team for the player to guess.

Hint button

If the player gets stuck they can use the hint button. The hint button triggers an alert to the player with a hint that consists of the hidden teams homestadium.

Design

Imagery, Colour Scheme and Fonts

Design choices was kept to a minum in order to focus on maximazing practising javascript. The -apple-system font style was chosen from personal preference as was the background color.

mainimg

Technologies Used

Languages Used

-HTML5

-CSS3

-JavaScript

Frameworks, Libraries & Programs Used

Git: was used for version control by utilising the Gitpod terminal to commit to Git and Push to GitHub.

GitHub: is used as the respository for the projects code after being pushed from Git.

Testing

Testing of HTML done via https://validator.w3.org/ htmlvalidator

All pages pass without errors or warnings

Testing of CSS done via https://jigsaw.w3.org/css-validator/ cssvalidator

All pages pass without errors or warnings

Testing of JavaScript was done via https://jshint.com/

Code passes without any Errors but with 15 warnings regarding syntax in ES6

javascriptvalidator

Lighthouse testing:

lighthouse

Deployment

The project was deployed via GitHub pages

Link to the page: https://krookmartin.github.io/Project2HangMan/

Credits

Code

buildKeyboard function

Code idea and implementaion by https://www.youtube.com/c/SimonSuhOnline

and www.w3schools.com

playerGuess function

Code idea and implementaion by https://www.youtube.com/c/SimonSuhOnline

Media

Images from http://www.pexels.com

project2hangman's People

Contributors

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