wordle
wordle copied to clipboard
Change object creating functions into classes
Description Change functions like createLetterStates and createDefaultStats into classes
Reasoning I should have done this to start with. Its cleaner and allows me to give them utility methods to tidy up my code a bit.
Implementation (optional) A toString type method on each to produce the string to write to localStorage, and a constructor that takes a string.