Commit Graph
2 Commits
Author SHA1 Message Date
mcpower c56b7ab526 Ultra Hard: prevent using letter in a previously grey position (#54)
For example, with a target word of RALLY ([challenge link]), guessing
ARRAY gives [elsewhere, elsewhere, absent, absent, correct].
This commit makes guessing SPRAY a violation, as we know that A cannot
be in the first or fourth positions (or else one of them would be
correct), and R cannot be in the second or third positions.

[challenge link]: https://hellowordl.net/?challenge=cmFsbHk
2022-01-24 12:16:07 +01:00
mcpower 5511a4fcdf Ultra Hard: enforce letter counts even without absent clues
For example, with a target word of RALLY ([challenge link]), guessing
LEVEL gives [elsewhere, absent, absent, absent, elsewhere].
This commit makes guessing WORLD afterwards a violation, as there must
be at least two Ls in the target word.

This commit also makes it clearer that, when there is an absent clue,
the count of the letter must be exactly (number of non-absent clues with
that letter).

[challenge link]: https://hellowordl.net/?challenge=cmFsbHk
2022-01-23 22:47:49 +11:00