Skip to content

Indecisive613/Indecisive613.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guess and Learn Wordle Style

See the working product here: https://indecisive613.github.io/

Overview

Guess and Learn Wordle Style is a game where users try to guess a 5-letter word within six tries. Guesses must be valid five-letter words. After each guess, the letters will change color to indicate the accuracy of the guess. Green means that a letter is in the correct spot. Yellow means that a letter is in the word but not in the right location. Grey means that the letter does not appear in the word.

Description

Users new to the site are automatically shown the instructions, which can also be found by clicking the question mark in the top bar. image

Guesses can be entered either from the user's keyboard, or the keyboard provided onscreen. image

After hitting enter, the letters on the guessing area and the keyboard will change color to reflect the accuracy of the guess. image

Once the user has correctly guessed the secret word, a message of congratulations appears at the top of the screen. image

Two seconds later, the statistics appear. The statistics can also be accessed from the bar chart symbol in the top bar. image

Pressing the clipboard icon copies the results to the user's clipboard in the following format:
I guessed the word occur in 3/6 tries.

⬛🟨⬛⬛⬛
⬛🟩🟨🟩🟩
🟩🟩🟩🟩🟩

Pressing 'Definition' shows the user the definition of the secret word. image

Pressing 'Play Again' after correctly guessing the secret will generate a new game with a new secret. If the user has not correctly guessed the secret word, there is an intermediate screen which asks the user if they are sure they would like to give up. image

If a word is not valid, the letters will remain uncolored and the user will get a message saying that their guess is invalid. image

When a user fails to guess the secret word within six tries, they are shown the correct answer in place of the congratulatory message. image

Languages

This project uses HTML, CSS and JavaScript.

Components

  • index.html - Defines the web structure for webpage.
  • main.js - Script that programs the behavior of index.html.
  • data.js - Script containing wordBank, the list of possible secret words.
  • style.css - Sytlesheet used for formatting.

Credits

Developer: Fiona Cheng
Last edit: July 26, 2022

About

A game where you try to guess the secret 5 letter word within 6 tries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors