Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 1.67 KB

README.md

File metadata and controls

24 lines (13 loc) · 1.67 KB

Timed Wordle

Timed Wordle is a variation of the popular Wordle game where players are racing against time to get the highest score. Players can choose from four different game modes and can view their stats and highscore for each.

Link to project: https://timedwordle.netlify.app

screenshot of timed wordle

How It's Made:

Tech used: HTML, CSS & JavaScript

The board is made in-situ using JavaScript and words are selected randomly from an external words.js array. Wordle uses keyup event listeners to allow keyboard input and logic to determine letters that match the randomly selected word. A countdown timer was implemented depending on which time selected and will countdown. Progression to the next level occurs when the right answer is obtained. Wordle matches each word input to the words.js array and if the word is not present then a modal pops up saying that the word is not in the list. This modal was created using a CSS library called Toastr. Using ChartJS and local storage stats of Wordle are retained and shown in the form of a bar chart. This shows highschores for each mode alongside how many guesses it took for each level.

Optimizations

Other additions I would like to make is an arcade version where if you get a word correct it would add time to your time remaining. Depending on how quick you got it, more time is added. Fully implement a dark mode, at the moment the button is there for it but it is not functional.

Lessons Learned:

  • How to use ChartJS
  • Implementing a countdown
  • Using local storage to store scores