function dealCardRows() { const deck = new decks.StandardDeck(); deck.shuffleAll(); const cardRows = []; cardRows.push(deck.draw(7)); cardRows.push(deck.draw(7)); cardRows.push(deck.draw(7)); return cardRows; }
//shuffle deck function initializeCardRows() { const deck = new decks.StandardDeck(); deck.shuffleAll(); const cardRows = []; //deal 7 cards per row cardRows.push(deck.draw(7)); cardRows.push(deck.draw(7)); cardRows.push(deck.draw(7)); return cardRows; }