View Single Post
  #1 (permalink)  
Old Feb 2nd, 2007, 19:23
gerryflockhart gerryflockhart is offline
New Member
Join Date: Feb 2007
Location: UK
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote