Skip to content

Latest commit

 

History

History
148 lines (125 loc) · 6.18 KB

File metadata and controls

148 lines (125 loc) · 6.18 KB

Guess The Word Game

Deploy status

Deploy challenges

Overview

guess-the-word screenshot

This challenge is great to advance your JavaScript skills. The challenge is to create a small game that tests your data management and DOM manipulation with JavaScript.

User Stories

  • Create a guess the word game that matches the given design.
  • Use HTML to create the basic structure.
  • Use Vanilla JavaScript to add interactivity.
  • Users can see a random scrambled word when the page is first loaded or after users click the random button.
  • Users can enter one letter at a time. After each attempt, the input should automatically focus on the next input if it exists.
  • Users can see the number of wrong answers (tries) and which answers are wrong (mistakes).
  • Users can regenerate a new scrambled word by selecting the random button.
  • Users can reset all inputs, mistakes, and tries by selecting the reset button.
  • When the number of tries or mistakes reaches 6, the game should be reset.
  • When the user completes the game, it should show a '🎉 Success' alert.
  • The page should be responsive on different screen sizes.
  • Deploy the solution and submit Repository URL and Demo URL.

Built With

Editor Tools

Extra Features

  • +7400 words to discover
  • Insensitive case checking for entered letter
  • Change color of used letters
  • Border colors for correct and wrong entered letters
  • Show correct word when winning or losing
  • Hints section: see all letters that have been guessed
  • Menu:
    • Definitions, for each discovered word. Includes Pagination
    • Difficulty, to change difficulty level: Easy, Normal, Hard, Master, Extreme, Insane, Why and Void
    • Stats, for discovered words

What I learned

How To Use

To clone and run this application, you'll need Git, Node.js and pnpm installed on your computer. From your command line:

# Clone this repository
git clone https://github.com/Hdoc1509/dev-challenges

# install all required dependencies
cd dev-challenges
pnpm install --filter "@hdoc/dev-challenges" --filter guess-the-word...

# Run guess-the-word in dev-mode
cd vanilla/guess-the-word/
pnpm run dev --open