cards trapping
Author |
Message |
magicman
![](http://clanff7.cl.funpic.org/modules/Forums/images/avatars/5066862484383ad4eaf5d5.jpg)
|
Posted: Mon Jan 10, 2005 9:04 am Post subject: cards trapping |
|
|
i'm making blackjack and i need some help with coding. The coding that i'm looking for is how to get my cards only to show up once. please help |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
wtd
|
Posted: Mon Jan 10, 2005 3:47 pm Post subject: (No subject) |
|
|
I would make the deck a collection (be it Vector, List, or simple array) if Cards. Then when youdeal a card out, be sure to not only put it in the hand of the right player, but remove it from the deck collection. |
|
|
|
|
![](images/spacer.gif) |
|
|