Playing Cards in Javascript

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

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 11 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.