I'm trying to develop a card game.
there are 4 players and each player is assigned an array of 52 and initially handed out 13 cards.
they can pick a card from their array and i want to move it to a garbageArray so they no longer have it, yet i can still deal it out when the person runs out of cards.
my question is, it is possible to take a section of an array, remove it and then move it into another array? also moving up the rest of the cards in the players array so there is no null in between them?
for example player one has 2spades, 3spades, 4spades. he picks the 3 spades and then garbageArray = 3spades.
now player ones array is 2Spades, 4spades null
any ideas? thanks!