Hi all,
I’ve just posted a new tutorial on my blog and thought I’d post it here too for anyone who is interested in taking a look.
The tutorial is based around a simple plug and play lua function that can take a table and thoroughly shuffle the data into a completely random order. Of course, this works for any table of data - not just a deck of playing cards as in the example.
There is a project and code that you can download from the web site (link below) that demonstrates how to easily create a deck of cards in order, shuffling them, and also returning them to their original order.
The project also demonstrates dealing the cards out to predetermined locations on the screen, using coded animations to move and pseudo-flip them.
Anyway, I hope you find it useful and below is a screenshot and a link to the tutorial:
New Tutorial: Creating, Shuffling & Dealing A Deck of Cards [import]uid: 74503 topic_id: 27364 reply_id: 327364[/import]