identifiing cards

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
krash

identifiing cards

Post by krash » Wed Oct 13, 2004 1:09 am

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????

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Wed Oct 13, 2004 3:26 am

Hi Krash,

Is your screen written in HTML format or something like that?

krash

Post by krash » Fri Nov 19, 2004 3:40 am

yes

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Nov 19, 2004 4:43 am

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.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts