JoeBussard / polywordleapi

the api for playing polywordle
0 stars 0 forks source link

Custom words have to be real words #54

Open JoeBussard opened 2 years ago

JoeBussard commented 2 years ago

The custom word feature, as currently implemented, rejects custom solutions that are not in all_words. It likewise rejects guesses that are not in all_words.

However, I want the custom word feature to support nonexistent/user-generated words, so that users to make games based on inside jokes or memes. However, this produces 2 very different possible rulesets for a game using a non-real word as its solution:

  1. If the custom solution is not a real word, then guesses don't have to be real words. Example: if the solution is fooby, guessing foozo is valid (and results in 3 green boxes and 2 red boxes).
  2. If the custom solution is not a real word, then guesses have to be either real words, or an exact match with the custom solution. Example: if the solution is fooby, guessing foozo returns an error because foozo isn't in all_words.

In either case, users should know that the solution isn't a real word.