Hi,
I am considering making a card game in Flash. The game doesn’t matter at this point because I am just trying to do some research. My question is, is there a system for keeping track of cards? Maybe a generator that can “deal” out cards in a fair fashion.
ANy tutorials that speak of cards (or even dominoes) and how you keep them in order, that you can point me to would be great!
What do you mean? Randomly give out the cards, I guess you could do that with arrays and Math.random(). Something like below-
suites=new Array("hearts","clubs","diamonds","spades")
numbers= new Array
("Ace",2,3,4,5,6,7,8,9,10,"Jack","Queen","King)
I’m not exactly sure how to do this, ask someone else. Basic idea is to create an array of what cards have been dealt out and make sure that the card is not repeated. Give me a day’s time.