Skip to content

Instantly share code, notes, and snippets.

View b3kN's full-sized avatar

Nicholas Bekeris b3kN

View GitHub Profile
@b3kN
b3kN / shuffle.js
Created October 22, 2014 23:20
Deck shuffle test
var suits = ['S', 'H', 'D', 'C'],
numbers = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A'],
deck = [];
// Loop to organize by suit
for (var i = 0; i < suits.length; i++) {
// Loop to add number to suit
for (var x = 0; x < numbers.length; x++) {