rbrown3 / word-guessing-game

A Word Guessing Game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Word Guessing Game Coding Exercise

This is a word-guess game in which a user plays against the computer. The computer will generate a random word, kept secret from the player(user). The player(user) will have 6 attempts. If the player(user)'s guess is correct, the computer will reveal all occurrences of that letter. A player wins when all letters in the word are revealed with less than 6 failed attempts. If the player runs out of attempts, the GAME IS OVER and the computer has won. Example of this type of game: https://en.wikipedia.org/wiki/Hangman_(game) for more details.

Motivation

This game was created to show problem solving skills, as well as beginner proficiency in HTML, CSS and vanilla JavaScript.

Goals

  1. It should generate a random word.
  2. It should display the number of attempts left. The maximum number of failed attempts is 6.
  3. It should decrease number of available attempts by 1 with each failed guess.
  4. It should reveal all occurrences of a letter when correct.
  5. It should display failed attempts.
  6. It should communicate to user when they have won, lost or the game is over.

Technologies

Authors

Resources

About

A Word Guessing Game


Languages

Language:JavaScript 49.6%Language:CSS 25.2%Language:HTML 25.2%