bafoontecha.com

theory meets application.

28 Apr, 2009

Shuffling, simulated.

Posted by: peddamat In: Articles| Software

ShuffleSim Screenie

ShuffleSim Screenie


ShuffleSim Full Screenie

ShuffleSim Full Screenie

I whipped up this applet to help visualize the evolution of card ordering in a shuffled deck. The shuffling technique simulated is the standard “bridged” type.

Card shuffling can be broken down into three seperate steps:
1. Break deck into two sub-decks.
2. Merge sub-decks into main deck.
3. Deal cards to players


Step 3 is typically deterministic, but randomness can be introduced in steps 1 & 2 using the Split RND and Merge RND, respectively.

Source code: shufflesim Card Deck Hand Plot
Binaries: shufflesim-binaries.zip [2 MB]

Built with Processing

No Responses to "Shuffling, simulated."

Comment Form