Tutorial: Making Scrabble!

Hello everyone :slight_smile:

It’s long overdue, but i finally got some free time this weekend and thought i would get a word game tutorial written up! Thanks to Naomi for suggesting a scrabble-esque type game for a tutorial.

Calling it a tutorial may be pushing things a bit, but it does go into a few details about some of the main functions used. At the least it provides you with the full source code so you can hack and slash your way through it until you figure it out :smiley:

I hope you enjoy! Heres the link:
Tutorial: Making Scrabble!
The source code is a fair bit longer than the last 3 tutorials i’ve done and more complicated, but if you were looking to make a word game or a scrabble type game at some point it should hopefully give you a helping hand. The code for finding words on the board and resetting the tiles is pretty horrendous, but i didn’t want to make it any more complicated or else it would be even harder to understand!
Credit goes to Peach and her wonderful Techority for the dictionary list and setting up the array for holding the words! Thanks Peach!

Any questions just ask away, or if you have a suggestion for the next tutorial, please feel free to tell me here, on Twitter, Facebook or anywhere else you may find me :slight_smile:
Thanks again,
Jamie from T and G Apps Ltd.
[import]uid: 69826 topic_id: 26248 reply_id: 326248[/import]

Wow, another great tutorial from T and G apps!! :smiley:
Awesome work man!

-philip [import]uid: 119384 topic_id: 26248 reply_id: 106394[/import]

@Jamie,

Thanks for sharing! It`s awesome mate.

Take the time to help the community is a sublime attitude! :wink:
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 26248 reply_id: 106408[/import]

Thanks Phillip :slight_smile:

No problem Rodrigo, hopefully a few people will find it helpful! [import]uid: 69826 topic_id: 26248 reply_id: 106490[/import]

Nice work, thanks for sharing [import]uid: 84637 topic_id: 26248 reply_id: 106549[/import]

Great! Thank you for sharing!!

Naomi [import]uid: 67217 topic_id: 26248 reply_id: 106569[/import]

Bravo! [import]uid: 19626 topic_id: 26248 reply_id: 106597[/import]

Thanks guys :slight_smile:

Now what to do next… I’m thinking maybe a tower defence game? Path finding and tower placement etc… But I’m open to ideas! Anyone have any other suggestions? :slight_smile: [import]uid: 69826 topic_id: 26248 reply_id: 106633[/import]

Thanks TandG! Definitely have my vote for a tower defense game next. One of my fav genres of games. [import]uid: 31262 topic_id: 26248 reply_id: 106642[/import]

+1 for a tower defense game from me too!

Cheers,
Naomi [import]uid: 67217 topic_id: 26248 reply_id: 106655[/import]

I’d +1 with Tower Defense - such a popular genre and tackles various challenging elements of app creation.

Thanks for the shout out, glad my work could assist you with your wonderfully community-minded project :wink:

Peach [import]uid: 52491 topic_id: 26248 reply_id: 106684[/import]

Looks like tower defence would be pretty popular. The next one will be on that then :slight_smile: I better do a bit of research into pathfinding then lol.

No problem, thanks for the code and retweets :smiley: [import]uid: 69826 topic_id: 26248 reply_id: 106747[/import]

Sorry for bumping the topic again, but the tutorial has just been updated!
Rodrigo was asking me how he would go about changing it over to work with Portuguese words, so i thought i would give it a go! The source code in the tutorial now has two folders in; one for the English version, and the other for the Portuguese version.

All i had to do to get it working in another language was to make sure that accented letters were recognised and that you had the ability to change which accent was on the letter.
If anyone is looking to change it to their language as well, i would recommend looking over the Portuguese source code (the letter array, the moveLetter function and the wordlist mainly).

Thanks :slight_smile: [import]uid: 69826 topic_id: 26248 reply_id: 106758[/import]

Hey Jamie - TandG , I thank you so much for doing so!

Your attention is something am really glad of since the first “contact” on Twitter. :slight_smile:
I`ll have a look only now because with our FUSO being so different that I could not look at it before. :wink:
I hope that I did not bother you…haha.
Many thanks mate,

Sincerely,
Rodrigo. [import]uid: 89165 topic_id: 26248 reply_id: 106844[/import]

Hi Rodgrigo!

You didn’t bother me at all! I forgot our time zones are completely different, so I’m sorry for the early morning email lol.

No problem, I hope you find the translated version helpful :slight_smile: [import]uid: 69826 topic_id: 26248 reply_id: 106866[/import]

Jamie ,

Be sure that what you have done about the PT version is much more than HELPFUL my friend!

You did an amazing job to get it working nicely there.
PS:I`ve sent you a mail as well. :slight_smile:
Many thanks,
Rodrigo. [import]uid: 89165 topic_id: 26248 reply_id: 106883[/import]

AWZUM! [import]uid: 10389 topic_id: 26248 reply_id: 106936[/import]

No problem Rodrigo! I’ve emailed you back by the way, I’m intrigued to know what this other “challenge” may be :wink:

Thanks Jason! :slight_smile: [import]uid: 69826 topic_id: 26248 reply_id: 106984[/import]

@Jamie,
Sorry being late to reply mate!

I just saw your mail and will answer you as soon as posible today yet.

Be calm because the challenge for you (that have done all the nice work until now) will be easy too, I think. :wink:

Saludos Amigo,
Rodrigo. [import]uid: 89165 topic_id: 26248 reply_id: 107035[/import]

Hey Rodrigo, sorry for the slow reply i’ve been really busy!

I got your email; i will add that extra letter into the portuguese version tomorrow when i have some time, then i’ll send you an email when the new version has been uploaded to our website :slight_smile:

In regards to making it 1 player… why would you want to do that? :stuck_out_tongue: who plays scrabble by themselves lol?
If you are determined to have it 1 player though you could quite easily change it. Just find any reference to p2Text, p2Score and whosGo and remove/edit them where necessary and it will be one player :slight_smile:

I’ll let you know when the changes have been made to the portuguese version!

Thanks,
Jamie [import]uid: 69826 topic_id: 26248 reply_id: 107635[/import]