Two Plus Two Older Archives

Two Plus Two Older Archives (http://archives2.twoplustwo.com/index.php)
-   Software (http://archives2.twoplustwo.com/forumdisplay.php?f=43)
-   -   Determining Cards Programmatically (http://archives2.twoplustwo.com/showthread.php?t=291490)

LetYouDown 07-12-2005 04:44 PM

Determining Cards Programmatically
 
From a programming point of view...how do applications determine which cards are dealt to you and which cards are on the board, in real time?

OrianasDaad 07-12-2005 05:12 PM

Re: Determining Cards Programmatically
 
Most of the applications read the hands and board after the hand is over, when it is written to a hand history file.

By and large, they read it from a text file that the software creates. I suppose a sophisticated programmer could write a program to recognize the cards in a poker room window, but this is much more difficult, and probably against the TOS of most poker sites.

LetYouDown 07-12-2005 05:17 PM

Re: Determining Cards Programmatically
 
Hence the question. Reading the text file is simply a matter of having the patience to filter out the data...and not difficult, just semi-time consuming to write.

The "bots" out there have no use for "after the fact" analysis. I'm curious how they're reading the cards. I have no designs on writing one myself, but it piques my curiousity as a software developer.

MiguelSanchez 07-12-2005 05:17 PM

Re: Determining Cards Programmatically
 
Someone else can probably answer this better, but there are a variety of ways. Party seems to write the hand history files in real time, so for those site you can just read the file. Others might use image recognition or try to intercept the actual data that is sent to the poker application.

LetYouDown 07-12-2005 05:20 PM

Re: Determining Cards Programmatically
 
"Image recognition" would be such a ridiculously hokey way of accomplishing it. I was under the impression that hand history files aren't written until after the hand is over.

Intercepting/decoding the data stream is a realistic possibility, but I'm curious how that would be approached...and if there is a certain point where encryption is abandoned, once it has reached the client's machine.

jba 07-12-2005 05:23 PM

Re: Determining Cards Programmatically
 
[ QUOTE ]
"Image recognition" would be such a ridiculously hokey way of accomplishing it. I was under the impression that hand history files aren't written until after the hand is over.


[/ QUOTE ]

no idea what you mean by "hokey", but it's likely this is the only way about it.

[ QUOTE ]

Intercepting/decoding the data stream is a realistic possibility, but I'm curious how that would be approached...and if there is a certain point where encryption is abandoned, once it has reached the client's machine.

[/ QUOTE ]

If the data stream can be intercepted/decoded that would be a Very Bad Thing. If you find out it's possible please, please, please tell party poker ASAP.

I have no idea what you mean by abandoned encryption...

baronzeus 07-12-2005 05:42 PM

Re: Determining Cards Programmatically
 
Image recognition is good but stupid.

HH files are written in real time.

LetYouDown 07-12-2005 06:09 PM

Re: Determining Cards Programmatically
 
Hokey as in terrible and extremely prone to problems. An extremely amateurish method for something that has financial implications.

Once the data gets to the machine, encryption isn't necessary in terms of "intercepting" the data. The problem with this is that software could be written in order to transmit hands in real time...which is obviously a big problem.

TheTROLL 07-12-2005 06:16 PM

Re: Determining Cards Programmatically
 
[ QUOTE ]
Image recognition is good but stupid.

HH files are written in real time.

[/ QUOTE ]

Agreed, I don't think grabbing images is "hokey" at all, pretty trivial in fact, given how reliably they are positioned, we have the image files ahead of time etc... but yes, the HH file is written line by line, so that's way simpler to implement.

LetYouDown 07-12-2005 08:23 PM

Re: Determining Cards Programmatically
 
I can't tell you how many times I've had the software screw up and have the block with the player's name positioned somewhere toward the middle. Any system on the lower end as very as RAM/Video card could encounter this type of anomaly quite frequently. It only takes once to lose a significant amount of cash with a bot. If I were writing this...that option would be out of the question.


All times are GMT -4. The time now is 10:05 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.