Hello, sorry for replying late.
I need for every word in the array, associates it to a few values, ie:
- "Word 1" => "a1", "a2", "a3", "a4" 4 values
- "Word 2" => "b6", "b7", "b8" 3 values
- "Word 3" => "c4", "c5", "d4", "d5", "e4", "e5" 6 values
** Notice different number of values for each word
...
...
...
I will have a checkerboard like this
a b c d e f g h i j k l m
-----------------------------------------------------
1 | | | | | | | | | | | | | |
-----------------------------------------------------
2 | | | | | | | | | | | | | |
-----------------------------------------------------
3 | | | | | | | | | | | | | |
-----------------------------------------------------
4 | | | | | | | | | | | | | |
-----------------------------------------------------
5 | | | | | | | | | | | | | |
-----------------------------------------------------
6 | | | | | | | | | | | | | |
-----------------------------------------------------
7 | | | | | | | | | | | | | |
-----------------------------------------------------
8 | | | | | | | | | | | | | |
-----------------------------------------------------
9 | | | | | | | | | | | | | |
-----------------------------------------------------[/code:14egvffj]
| WORD 1| | WORD 2 | | WORD 3 | |VALIDATE|
What I need to do is when I click a cell and a word, the game says me if the word is in the selected cells or not; for example if I click WORD 1 and I click "a1" cell, it will say is right; if I click WORD 1 and h5 it will say me it is wrong because WORD 1 got only "a1", "a2", "a3", "a4" values
The words and their values will be defined in an external application and stored in a database or a JSON file
Thank you!