Skip to content

Vanilla JS Wordle® clone. As deployed, it uses a locally stored copy of the Official Scrabble® Players Dictionary with 8636 5-letter words, about 3x harder than the NYT version. Includes hot links to Wiktionary for obscure words.

Notifications You must be signed in to change notification settings

mlorberdev/Wordle-Clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WRDL

This is a fully functional Wordle® clone written in vanilla JavaScript. It uses a local, client-side copy of the Official Scrabble® Players Dictionary slimmed down to 5-letter words only, leaving 8636 words, a bit over 3x the official list. As this exposes many lesser-used words, and a free API to an unabridged dictionary was not available at the time of this writing, the endgame screen offers a link to the Wiktionary entry of the game's current word, which is successful most-if-not-all of the time. Statistics are saved to a firebase database.

Deployed on Netlify

Script Abstract:

  1. Login user
  2. Random word selection
  3. Gameboard and keyboard generation
  4. Binary search for valid entry on each guess
  5. Evaluate guess and apply colors to DOM
  6. Check for win condition and update DOM
  7. Update statistics in localstorage and firebase if online

Screenshots

Game Over: Shows link to definition

screenshot, game over

Statistics: Saved in localstorage

screenshot, statistics

License

CC BY 4.0

About

Vanilla JS Wordle® clone. As deployed, it uses a locally stored copy of the Official Scrabble® Players Dictionary with 8636 5-letter words, about 3x harder than the NYT version. Includes hot links to Wiktionary for obscure words.

Topics

Resources

Stars

Watchers

Forks