|
Array for a deck of cards
Hello,
I am a bit of a novice at JavaScript but am trying to make a simple card game. Unfortunately, I've fallen at the first hurdle which is to make a standard deck of cards (I'm guessing as an array) and then randomly split the deck into 2 random piles, A and B (each will therefore be of size 26).
Does anyone know how I might do this? Or be kind enough to point me in the right direction for the best approach.
Many Thanks.
|