I've made a little project that generates a pack of cards, shuffles it and then deals out some hands.
http://scratch.mit.edu/projects/racypy/2637063
It seems to work okay until you ask it to do a large deal (over 5 hands of 5 cards for example).
The fact that it works for the lover numbers made me think that the basic method I've used is okay, but maybe I'd missed something.
Any help appreciated!
mark
Offline
in your "deal" script, you've got hands and cards per hand all mixed up so your vector calculation places the cards over the wrong place holders - very neat algorithm apart from that
Offline
Ratty1967UK wrote:
in your "deal" script, you've got hands and cards per hand all mixed up so your vector calculation places the cards over the wrong place holders
Thanks Ratty1967, I'll look at this again and see if I can fix it!
mark
Offline