That's not actaully very hard at all. However hard is subjective. And no matter how easy the tool is to use; there will always be an edge case example that. Especially an edge case where a new tool user may not quite get the flow of the tool. In C2 it's all about leveraging the tools easy graphical style of development to your use. Sure you can use an array, but there are ways to structure an array. Including graphically.
Step 1 there is no code flow. this is design.
So here is a thought. Create a sprite(you can use sprite font) with 26 animatons so that there is 1 letter per animation and each animation named according to letter. Turn off animation speed so the letters don't cycle.
Define a screen offset X and Y. Get the Width/height of the Sprite. Determine Rows/Columns for your board.
Create a for(i = 0; i < col * row; i++)
stystem.create object SpriteLetter.
spriterletter.position = x * width + offsetX and y * height +offsetY // technically you will want a spacing option
spriteletter.animation = choose("a", "b", "c"................) // the alphbet
Step 2
Create a few objects and stuff Also make sure you include Touch Object.
text word
1 SpriteObject. called Node
1 SpriteObject. called PathLine
1 SpriteObject. Clear button. This goes off the side. With the events OnTouch. Destroy node and PathLine
1 SpriteObject. Solve button.
Event
IsOnTouch
isTouching SpriteLetter
isNode NOT overlapping Sprite Letter
-- Create Node.
-- node.position to spriterletter
Event
OnCreated SpriteNode
-- if node.count > 0
-- node.createdId = node.count
-- node.create PathLine
-- pathline.set angle(nodexy, lastnodexy)... wyou will need to do some funky same object stuff here by prestorexy
-- lastcretednodeUID = node
Solving
whatever trigger you want
for each node sort by countid ascending
-- node overlapping spriteletter(this builds the SOL into the sprite letter for just the node)
-- word add text spriteletter.animationname
endloop// only to note when the word is built
check word against dictionary
do word stuff.
And for the dictionary your on your own. but I'm sure you can find something
But for me this was a very simple design that I could probably whip up in less than an hour. However I totally admit that I really needed to think within C2 design flow. Which isn't intuitive with a programmers background design.
Anyways. Easy peasy project. good luck