I want a bit of code that checks whether individual characters match characters in a fixed string (either some or all of them and and case sensitive and in any order).
For example my fixed string is abcdef
Say someone types in the room...
!word afde
or
!word de
That would match true (as all those letters are in the string).
If they then typed...
!word afdv
or
!word av
It would match false as the v isnt in the string.
Also, just to further it, is there any way to show which letters do/dont match?
e.g if someone typed
!word xaftdbjc
it would say "correct letters are afdbc, incorrect letters are xtj"
Thanks for any help given!