I am trying to design a word game using a word of nine characters. The player will see only those characters jumbled into a 3 x 3 square and the character in the centre spot is classified as mandatory.
The player must create words of more than three characters using the characters of the word but including the mandatory character.
Assuming the word is FORMATTING and the designated character is the letter T, what algorithm or script will check that:-
a: only the letters from the word have green used
b: the letters have only been used once. and
c: the designated letter is included in the word
Is these conditions are not met, then a message to be displayed .