jonadsimon / wonder-words-generator

Generates WonderWords puzzles
Apache License 2.0
2 stars 0 forks source link

Add word class which handles alternate representations and filtering #16

Closed jonadsimon closed 2 years ago

jonadsimon commented 2 years ago

Currently there are multiple redundant string formatting lines scattered throughout the code to convert words from their default format to their board format.

Rather than passing around words as strings, wrap them in a Word class that handles alternate string transformations

jonadsimon commented 2 years ago

Moved these into a single function (also could be compressed more), and created a dedicated Word class