Forum breadcrumbs - You are here:WeLoveGod RallysPublic Forums: futurebasicRe: GameplayKit Card Shuffler
You need to log in to create posts and topics.
Re: GameplayKit Card Shuffler
77,940 Posts
#1 · March 11, 2022, 5:12 am
Quote from Forum Archives on March 11, 2022, 5:12 amPosted by: bernfbe <bernfbe@...>
Ken wrote:This demo uses CocoaUI GameplayKit's:
fn GKRandomSourceArrayByShufflingObjectsInArrayfunction to simulate shuffling a deck of cards and drawing five random cards. The code can easily be adapted to dealing any kind of card hands.
Ken,Nice Demo. Thanks for sending the full res version backchannel.I know nothing about randomising and wonder what's the difference between GKRandomSourceArrayByShufflingObjectsInArray and ArrayShuffledArray?Would also be interested to know when we'd use GKRandomSourceShared, GKRandomSourceInit, GKARC4RandomSourceInit, etc.Bernie--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@freegroups.net To access the list archives, go to: http://freegroups.net/groups/futurebasic/
Posted by: bernfbe <bernfbe@...>
Ken wrote:
This demo uses CocoaUI GameplayKit's:
fn GKRandomSourceArrayByShufflingObjectsInArrayfunction to simulate shuffling a deck of cards and drawing five random cards. The code can easily be adapted to dealing any kind of card hands.
Ken,
Nice Demo. Thanks for sending the full res version backchannel.
I know nothing about randomising and wonder what's the difference between GKRandomSourceArrayByShufflingObjectsInArray and ArrayShuffledArray?
Would also be interested to know when we'd use GKRandomSourceShared, GKRandomSourceInit, GKARC4RandomSourceInit, etc.
Bernie
--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@freegroups.net To access the list archives, go to: http://freegroups.net/groups/futurebasic/
Click for thumbs down.0Click for thumbs up.0