Algorithm · Shopify · Medium
Requirements Start the game by loading a dictionary of valid words and picking a target from it at random. In the original version all words have exactly four letters. The player can submit up to 5 guesses. After each attempt, return a hint pattern, or let them know they guessed correctly. Every guess must be a valid dictionary word; an illegal word is rejected on the spot, yields no hint, and does not consume an attempt. Hint encoding, per character position: 1 — the letter…
Checking your access…