Hi all
i am building an spcrip to play a card game for me and i was wondering if there is any way to get it to identifie what card are what. for exp: i wasnt it to know if its picking up an ace a jack or what ever. I just need help on how i can get to to reconise the cards. even if it could know what cards i have in my hand would be cool. and suggestions????
identifiing cards
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Gerneral overthought...
1. Will need one variable to know all cards still in deck.
2. Will need one variable to know which cards are in my hand.
3. Do you need other variables to know which cards are no longer available or in some type of a common pool, or in hands of other players, or just discarded.? May be useful for calculating odds.
4. Develop naming convention for cards, two letters constant to assist in parsing variable strings. CHSD for the suits. 123456789ABCD for the values. Exampe: 3C;3S;7S;7D;7H = Full House. By using HEX vaues vs. JQK may be an easy way to do math, like for BlackJack
5. Could parse each variable string as cards are played, just remove from one variable and add them to another variable.
Also, let me know if you need a font for Cards. I think I may have one hanging around somewhere.
1. Will need one variable to know all cards still in deck.
2. Will need one variable to know which cards are in my hand.
3. Do you need other variables to know which cards are no longer available or in some type of a common pool, or in hands of other players, or just discarded.? May be useful for calculating odds.
4. Develop naming convention for cards, two letters constant to assist in parsing variable strings. CHSD for the suits. 123456789ABCD for the values. Exampe: 3C;3S;7S;7D;7H = Full House. By using HEX vaues vs. JQK may be an easy way to do math, like for BlackJack
5. Could parse each variable string as cards are played, just remove from one variable and add them to another variable.
Also, let me know if you need a font for Cards. I think I may have one hanging around somewhere.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!