#1
|
|||
|
|||
Sklansky bucks calculator (php script)
I was bored the other day and wrote a sklansky bucks calculator shell script(not just sklansky bucks, but gives you an idea of how you're getting your money in, etc) using php. It queries your PT database to find hands where one or more players were all in and calculates your equity. Currently I don't want to release the script because it hits twodimes.net and parses the html and I don't want to hammer the site or anything. I know twodimes.net uses the free pokenum program which is written in C. Does anyone out there know if I can use their C libraries with my php script or care to help me develop this a little more for free release?
|
#2
|
|||
|
|||
Re: Sklansky bucks calculator (php script)
This sounds very interesting.
|
#3
|
|||
|
|||
Re: Sklansky bucks calculator (php script)
Hi wildzer0,
you can use the PHP function exec() to run pokenum on the local machine. Pokenum demonstrates the use of the libraries (I've been trying to figure it out a little lately), but if already have working setup using twodimes, pokenum on it's own does enough already, no? dave. |
#4
|
|||
|
|||
Re: Sklansky bucks calculator (php script)
Really cool idea. Every time I have an ugly downswing I begin working on a project like this but then scrap it as soon as I win a 20/80 [img]/images/graemlins/smile.gif[/img]
If you do this in PHP.NET (not a PHP programmer so don't know if this is a simple switch) you could use the C# Poker Eval libraries right in your code. rvg |
#5
|
|||
|
|||
Re: Sklansky bucks calculator (php script)
I've already written a program which does this. I'm going beta on April 7th. It was originally written for Omaha/8 (which I play) but I've expanded to include holdem and written a HH Replayer that has stats overlay and a built in range calculator.
Here are some screenshots from the old Omaha version which was just for personal/friends' use (these are about 3 months old). Statistics and other features have been added which you'll see in the beta. http://img91.imageshack.us/img91/8206/aamaysepft8.gif http://img252.imageshack.us/img252/3...tmaysepnv7.gif http://img296.imageshack.us/img296/2...potsizecy4.png http://img334.imageshack.us/img334/9...filterskw5.gif |
#6
|
|||
|
|||
Re: Sklansky bucks calculator (php script)
[ QUOTE ]
I've already written a program which does this. I'm going beta on April 7th. It was originally written for Omaha/8 (which I play) but I've expanded to include holdem and written a HH Replayer that has stats overlay and a built in range calculator. Here are some screenshots from the old Omaha version which was just for personal/friends' use (these are about 3 months old). Statistics and other features have been added which you'll see in the beta. http://img91.imageshack.us/img91/8206/aamaysepft8.gif http://img138.imageshack.us/img138/4...sum1712ep0.png http://img252.imageshack.us/img252/3...tmaysepnv7.gif http://img296.imageshack.us/img296/2...potsizecy4.png http://img334.imageshack.us/img334/9...filterskw5.gif [/ QUOTE ] This looks awesome. Is this going to be free? |
#7
|
|||
|
|||
Re: Sklansky bucks calculator (php script)
very nice!
|
#8
|
|||
|
|||
Re: Sklansky bucks calculator (php script)
[ QUOTE ]
Hi wildzer0, you can use the PHP function exec() to run pokenum on the local machine. Pokenum demonstrates the use of the libraries (I've been trying to figure it out a little lately), but if already have working setup using twodimes, pokenum on it's own does enough already, no? dave. [/ QUOTE ] Thanks dave, that's exactly what I was looking for. Twodimes.net works perfectly with the script and it is functional right now, but the problem is that it has the ability to clobber twodimes.net if you're not careful so I don't want to put it out so twodimes.net basically gets attacked inadvertently. I'll finish up this script with pokenum (maybe this weekend, but probably monday) and post it here for whoever wants it. Phil's will probably be much more user friendly as this is a command line jones but everyone's welcome to it once I rework it a bit. |
#9
|
|||
|
|||
Re: Sklansky bucks calculator (php script)
Wildzer and Phil,
Please include the ability to run the analysis on any pot not just ai ones. Say if I want to know if the pot is over X bb's what are my sklansky bucks results. Thanks. |
#10
|
|||
|
|||
Re: Sklansky bucks calculator (php script)
[ QUOTE ]
This looks awesome. Is this going to be free? [/ QUOTE ] At the moment I'm thinking of having a basic version which is free and having an upgrade with all the premium features. It all depends on feedback during the beta phase - if it's not worth my time to do commercial support or if the support load is light then it'll stay free. I have my own business already so it depends a lot on how much extra work this will create. [ QUOTE ] Please include the ability to run the analysis on any pot not just ai ones. Say if I want to know if the pot is over X bb's what are my sklansky bucks results. Thanks. [/ QUOTE ] Been done. It also accounts for side pots, rake, etc. |
|
|