MJH
11-14-2009, 02:00 PM
1) CODE TITLE: Poker Fun!
2) AUTHOR NAME/NOTES: Michael J. Hill www.javascript-demos.com
3) DESCRIPTION: Deals 1 to 8 hands, of 1 to 7 cards each, then displays the name of each hand's best rank, e.g., Pair of 8's, Full House 9's over K's.
Several configuration variables are available:
var nHands = 5; // number of players - 8 maximum, (an octagon table);
var perHand = 7; // 1 to 7 cards;
var nDecks = 3; // you may use a "shoe" of several decks;
var dealPace = .075 // a new card is dealt every n seconds;
// the next two variables may be either true or false, no quotes;
var rotateDealer = true; // if true, each player, in succession, becomes the dealer;
var toEndOfDeck = true; // continue to deal until not enough cards remain, then shuffle a new deck / shoe;
4) URL TO CODE: http://www.javascript-demos.com/poker/Poker_Demo.html
2) AUTHOR NAME/NOTES: Michael J. Hill www.javascript-demos.com
3) DESCRIPTION: Deals 1 to 8 hands, of 1 to 7 cards each, then displays the name of each hand's best rank, e.g., Pair of 8's, Full House 9's over K's.
Several configuration variables are available:
var nHands = 5; // number of players - 8 maximum, (an octagon table);
var perHand = 7; // 1 to 7 cards;
var nDecks = 3; // you may use a "shoe" of several decks;
var dealPace = .075 // a new card is dealt every n seconds;
// the next two variables may be either true or false, no quotes;
var rotateDealer = true; // if true, each player, in succession, becomes the dealer;
var toEndOfDeck = true; // continue to deal until not enough cards remain, then shuffle a new deck / shoe;
4) URL TO CODE: http://www.javascript-demos.com/poker/Poker_Demo.html