kbjr / node-cards

A Node.js playing card module with support for custom decks

Home Page:http://kbjr.github.io/node-cards/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

same card on every draw

n7best opened this issue · comments

ran test on remote and local, the second card after shuffle with draw(2) or draw(3) is always 2 of club

var cards = require('cards');

// Create a new 52 card poker deck
var deck = new cards.PokerDeck();

// Shuffle the deck
deck.shuffleAll();

// Draw a card
var card = deck.draw(2);
console.log(card);

use the arc4 method regarding #6, stills getting 2 of club, my workaround is drawing the 1 card and reshuffle and draw 1 more again