programming

karlkruse

Dormant account
Joined
Dec 19, 2007
Location
indiana
Hello I am trying to program a hand analysis software that will allow me to input card valued in like a C# project and return which cards to hold. I have looked at vpgenius.com and asked for the source to his hand analysis software. Anyone able to give me advice?
 

Zoozie

Ueber Meister
PABnonaccred
CAG
Joined
Dec 1, 2005
Location
Denmark
It is already explain in full details on vpgenius and even with code examples.
Basically you try all possible combinations of cards to hold. And for each of these you average payout for all possible draws. It is possible (but complicated) to improve performance a lot by treating 'similar' hands the same so you only have to do it once for each of these.

And then you also have to make a hand-ranking method, which is also explained, that determines the rank of a given hand. Then add some GUI and you are good to go...

The hand-ranking code on vpgenius is a little complicated, but it is very fast, because it only uses 'primitives'. I have a much simpler Java version using OO-design, but it is 5000 times slower. Of course you can also just implement it in Java or C# using primitives to get the same performance, and I suggest you do this.
 

SlotsWizard

Dormant account
Joined
May 11, 2006
Location
North of Antarctica
Hello I am trying to program a hand analysis software that will allow me to input card valued in like a C# project and return which cards to hold. I have looked at vpgenius.com and asked for the source to his hand analysis software. Anyone able to give me advice?
I got your emails, but like I told you, the code I wrote would be pretty much useless to you because it would require so much modification and explanation - which I really don't have the time for. I already put a lot of time and effort into the programming pages on my site and made them as easy to understand as I could.

Just go about it logically and start simple. I believe you said you were just learning C#, so you'll want to play around with it for a while before you attempt to create something as massive as a VP analyzer. Get a feel for the language first.
 

karlkruse

Dormant account
Joined
Dec 19, 2007
Location
indiana
best play strategy

I have a question about the options open to me for making the source on my own. First, can you only make a hand analyzer that would tell you which cards to hold for the best play only by looping through all 32 ways to play each hand and finding the ev of each of those ways to play. Or if you just want to know which cards to hold and not its actual ev is there any way i can use like you predefinded strategy or some other code that would just tell me which cards to hold for each hand i inputted?

You changed you site a lot lately how long have you been planning to complete that?
 

Zoozie

Ueber Meister
PABnonaccred
CAG
Joined
Dec 1, 2005
Location
Denmark
For a fixed paytable and specific VP game it is normally possible to construct a strategy table (algorithm). Some games are too hard to made strategy tables for because of penalty cards etc. And then it is very easy to make a program to play by this algorithm.

I did exactly that for JoB in the following thread. Source code also included.
However it is Java and not C#(but they are very similar).

http://www.casinomeister.com/forums...multi-line-simulator.html?highlight=simulator
 

SlotsWizard

Dormant account
Joined
May 11, 2006
Location
North of Antarctica
I have a question about the options open to me for making the source on my own. First, can you only make a hand analyzer that would tell you which cards to hold for the best play only by looping through all 32 ways to play each hand and finding the ev of each of those ways to play. Or if you just want to know which cards to hold and not its actual ev is there any way i can use like you predefinded strategy or some other code that would just tell me which cards to hold for each hand i inputted?
Using the strategy-based method would be easier, but keep in mind that it's a basic strategy and there are lots of seemingly bizarre exceptions that would need to be accomodated. I am very skeptical that you will be able to accomplish what you are trying to do successfully. I seriously wouldn't attempt it if I were you. I wouldn't even attempt it if I were me.

You changed you site a lot lately how long have you been planning to complete that?
About a week or two.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top