How to select words from a list randomly, shuffle them, display them as buttons and check

kazuo1231kazuo1231 Member Posts: 2
I am trying out GameSalad, by starting with an easy game similar to Text Twist. I have finished creating my User Interface from menus to high scores to options, but I am stuck at the game logic part.

My game goes like this:

> select 6-letter word.
> ready answers for the word
> shuffle 6-letter word
> display letters as buttons
> user inputs possible words that can be formed
> if answer is 3 letters, give 10 points,
> if 4 then 15, 5 is 20, and 6 is 25.
> answering half of the words correctly or getting the longest word enables the user to go to the next level
> 6-letter words stored somewhere so user will not repeat same word.

I have created these attributes:
> answers - stores all possible words for 6-letter word
> word - the original 6-letter word
> answered - should contain all the words user has answered

But I ran into these problems:

1. Where do I put my dictionary of words? I am limiting my dictionary to be like this so the answers are not needed to be searched for in a huge dictionary:

{
"words": {
"dollar": ["ado", "all", "lad", "oar", "old", "rod", "doll", "lard", "load", "lord", "oral", "road", "roll", "droll", "dollar"],
"encore": ["con", "eon", "ere", "nee", "nor", "one", "ore", "roc", "roe", "cone", "core", "corn", "once", "crone", "encore"]
}
}

I take I have to use tables for this one?

2. Sow do I shuffle the word I selected?
3. How do you make the letters into buttons?

Thanks for the help. Once I find out how to do this, I think I'll be on my way.

~Kaz

Answers

Sign In or Register to comment.