Shuffling and comparing to cards already dealt are all unnecessary steps with my approach, but you do as you decide is best.
Type: Posts; User: GregBrannon
Shuffling and comparing to cards already dealt are all unnecessary steps with my approach, but you do as you decide is best.
I didn't even check your code for your dealing design, but a clever way to do it (I think) is to:
Assuming each card is an object (adjust if it's not):
Load the deck of cards into an array, order...