Thursday, June 7, 2012

Smartphone Development - Week 3 - Project WordLord

I have decided to go with the word game idea and came up with a name for the application - WordLord. I have come up with a basic UI layout, as well as a state machine. These items will be used as reference while coding the application. Speaking of coding, the development of the application is in full swing. The game is now "playable" - no words are generated, but a placeholder function serves a different word every time the button "Next" is pressed, or the device is shook. My next step is to work on the dictionary and the game options.

EDIT: I have now completed the first version of the dictionary. In order to randomize the words, I made two lists. When a word is served, it is moved to the second list. When the first list runs out of words, the words from the second list get moved back to the first. The index of the chosen word is randomly generated. Every time the list is traveled through, the order of the words will change. Thus, the same word should not pop up often. The dictionary currently contains over 900 words, which should satisfy a play session of over an hour.

No comments:

Post a Comment