I recently wanted to examine the characteristics of the perfect faro shuffle on decks of cards of different sizes but without delving into complex mathematical theory so I wrote some code to simulate a deck of cards with some built in code for shuffling. It's fairly straight forward and self-explanatory. The code can be found at my svn repository. It may be of interest to someone trying to create a card game written in javascript.
Comments
Post new comment