Open Side Menu Go to the Top
Register
New AHK script: Bubble Factor Calculator New AHK script: Bubble Factor Calculator

03-11-2008 , 08:59 PM
Quote:
Originally Posted by Everlong
So I have toyed around with this request. Problem is making bbf calculations for more than 4 spots while at the same time effectively calculating permutations of finishes takes forever literally.

I came up with this though to show you EV for final table situations in MTT sng:s.
Maximum payout spots in this one is 7.Theoretically you can enter any number of stacks - up to 8 it is pretty fast, 9 is tolerable and anything above 9 takes ages.


EDIT: hang on I broke the code somwhere....sigh
that's cool cause when more than final table other dynamics ususally take precedence. (2 shorthand 5 man tables, stealing, shorthand play, and still kinda far from payout).
New AHK script: Bubble Factor Calculator Quote
03-12-2008 , 03:36 AM
OK, I think I fixed it (am know to have veen wrong in the past - see above )

It gets its own thread http://forumserver.twoplustwo.com/sh...88#post3125788
New AHK script: Bubble Factor Calculator Quote
03-14-2008 , 07:43 PM
Normal 9-handed SnG. 50/30/20 payout.

Stacks:
10000
5000
5000

It only displays the bubble factors for stack 1. The 'X' are missing values.
-- 1.12 1.12
X ---- X
X X ---


If I change the stacks to 10000 5000 5001 I get the following:
-- 1.12 1.12
X ---- X
X 1.18 ----

Better but still missing values
New AHK script: Bubble Factor Calculator Quote
03-14-2008 , 07:56 PM
Also with stacks 5000 5000 5000
It doesnt show any bubble factors at all.

Quote:
Originally Posted by marand
Normal 9-handed SnG. 50/30/20 payout.

Stacks:
10000
5000
5000

It only displays the bubble factors for stack 1. The 'X' are missing values.
-- 1.12 1.12
X ---- X
X X ---


If I change the stacks to 10000 5000 5001 I get the following:
-- 1.12 1.12
X ---- X
X 1.18 ----

Better but still missing values
New AHK script: Bubble Factor Calculator Quote
03-14-2008 , 08:25 PM
it doesn't work three-handed (after the bubble) the way I've set it up. It would be pretty easy to fix though.


edit: rather it doesn't work when stacks = payout spots or less.
it works threehanded if you only have 2 spots (6max)

Last edited by Everlong; 03-14-2008 at 08:31 PM.
New AHK script: Bubble Factor Calculator Quote
03-15-2008 , 12:11 AM
Quote:
Originally Posted by Everlong
it doesn't work three-handed (after the bubble) the way I've set it up. It would be pretty easy to fix though.


edit: rather it doesn't work when stacks = payout spots or less.
it works threehanded if you only have 2 spots (6max)
I dont really understand why you dont want it to work for 3-handed. But in case you change your mind or if someone else wants a working version. I just used the code for 6-handed and applied it to ITM for 9-handed and changed the payout structure.

I noticed that the 6max calculations takes (a lot) longer than the 9max. Is the algorithm for 9max code better or is it somehow more complicated math for the 6max? Seems strange to me, but I cant say I really understand the code

-----------------------------------------------------------
Change this part:
-----------------------------------------------------------
Loop, 6
{
GuiControlGet, Stack%A_Index%,, Stack%A_Index%
}

EVCALC()

-----------------------------------------------------------
To the following:
-----------------------------------------------------------
Loop, 6
{
GuiControlGet, Stack%A_Index%,, Stack%A_Index%
}


if ( (9max = 1) AND (Stack4 = 0) AND (Stack3 > 0) )
{
6max := 1
type = 6-max hand history
9max := 0
payf := 30
pays := 10
payt := 0
Checkstr = 6max
}

EVCALC()

-----------------------------------------------------------
New AHK script: Bubble Factor Calculator Quote
03-15-2008 , 12:26 AM
Quote:
Originally Posted by marand
I noticed that the 6max calculations takes (a lot) longer than the 9max. Is the algorithm for 9max code better or is it somehow more complicated math for the 6max? Seems strange to me, but I cant say I really understand the code
Found why it takes longer... hehe there is a 'Sleep, 1' in the 6max code
New AHK script: Bubble Factor Calculator Quote
03-15-2008 , 12:37 AM
Quote:
Originally Posted by Everlong
it doesn't work three-handed (after the bubble) the way I've set it up. It would be pretty easy to fix though.


edit: rather it doesn't work when stacks = payout spots or less.
it works threehanded if you only have 2 spots (6max)
I was wondering if it would be possible to make it work when there are only 3 players left. I would like to know my "bubble factor" (even though it's no longer the "bubble") for situations like this:

10000
3000
500

(Just the first example I thought of.)
New AHK script: Bubble Factor Calculator Quote
03-15-2008 , 01:16 AM
Quote:
Originally Posted by a nonymous
I was wondering if it would be possible to make it work when there are only 3 players left. I would like to know my "bubble factor" (even though it's no longer the "bubble") for situations like this:

10000
3000
500

(Just the first example I thought of.)
I 'fixed' the code, but I cant update it on the page. If you want a working version before he fixes it just do the following.

-----------------------------------------------------------
Change this part:
-----------------------------------------------------------
Loop, 6
{
GuiControlGet, Stack%A_Index%,, Stack%A_Index%
}

EVCALC()

-----------------------------------------------------------
To the following:
-----------------------------------------------------------
Loop, 6
{
GuiControlGet, Stack%A_Index%,, Stack%A_Index%
}


if ( (9max = 1) AND (Stack4 = 0) AND (Stack3 > 0) )
{
6max := 1
type = 6-max hand history
9max := 0
payf := 30
pays := 10
payt := 0
Checkstr = 6max
}

EVCALC()

-----------------------------------------------------------
New AHK script: Bubble Factor Calculator Quote
03-15-2008 , 03:34 AM
Quote:
Originally Posted by marand
I 'fixed' the code, but I cant update it on the page. If you want a working version before he fixes it just do the following.

-----------------------------------------------------------
Change this part:
-----------------------------------------------------------
Loop, 6
{
GuiControlGet, Stack%A_Index%,, Stack%A_Index%
}

EVCALC()

-----------------------------------------------------------
To the following:
-----------------------------------------------------------
Loop, 6
{
GuiControlGet, Stack%A_Index%,, Stack%A_Index%
}


if ( (9max = 1) AND (Stack4 = 0) AND (Stack3 > 0) )
{
6max := 1
type = 6-max hand history
9max := 0
payf := 30
pays := 10
payt := 0
Checkstr = 6max
}

EVCALC()

-----------------------------------------------------------
Ok, cool, thanks. Bubble Factors now displayed. The EV seems to be off. It adds up to 40 instead of 100. I don't really need the EV part, just curious if you're sure the Bubble Factors will be correct.

I'm getting a BF of 2.52 for the 3000 stack (against the 10000 stack) in my 10000, 3000, 500 example. Does that sound right?
New AHK script: Bubble Factor Calculator Quote
03-15-2008 , 12:13 PM
Quote:
Originally Posted by a nonymous
Ok, cool, thanks. Bubble Factors now displayed. The EV seems to be off. It adds up to 40 instead of 100. I don't really need the EV part, just curious if you're sure the Bubble Factors will be correct.

I'm getting a BF of 2.52 for the 3000 stack (against the 10000 stack) in my 10000, 3000, 500 example. Does that sound right?
Yes I am quite sure the Bubble Factors are correct. They look reasonable and match those for a modified 6max.

Sorry if you want the EV to show correctly modify the code to 75% first, 25% last.
(50 30 20 --> 30 10 0 once you are already ITM --> Which equals 75% 25% 0%)
New AHK script: Bubble Factor Calculator Quote
03-15-2008 , 04:10 PM
Thanks for the improvements marand! I'll add and upload once I am done getting drunk.
New AHK script: Bubble Factor Calculator Quote
03-18-2008 , 06:14 AM
Uploaded version 1.4 with marands improvements
http://overcards.com/wiki/moin.cgi/B...ctorCalculator
New AHK script: Bubble Factor Calculator Quote
04-25-2008 , 08:28 AM
Well done, very useful.

Do you know how to calculate the average bubble factor when there are >2 tables left in a tournament? I would like to make bubble factor graphs like in the book for MTTs, but I can only do it up to 9 players using wiz.
New AHK script: Bubble Factor Calculator Quote
06-05-2008 , 09:48 AM
I'm really sorry guys and I have been trying all morning but.....
I can't seem to get the script to do anything.
OK its true I've never used a script before so I'm probably being really thick here.
I've downloaded the AHK program and have pasted the bubble script into the edit script box but then when I exit the programme and re launch calculator doesn't appear anywhere...
OK I bet lots of you are peeing your pants now cos I've done or not done something really easy but please help if you can spare the time.
New AHK script: Bubble Factor Calculator Quote
06-06-2008 , 05:02 AM
10-07-2008 , 08:12 PM
Quote:
Originally Posted by mattiesmat
Well done, very useful.

Do you know how to calculate the average bubble factor when there are >2 tables left in a tournament? I would like to make bubble factor graphs like in the book for MTTs, but I can only do it up to 9 players using wiz.
Same that would be impresive, well i will pay for it, big prize! like 500$. More if he can take the chips of the player in our table other too via HH´s.
New AHK script: Bubble Factor Calculator Quote
01-09-2009 , 05:51 AM
Hi,

Nice script for sure but I get this error when starting the script
Quote:
Error at line 1851

Line Text:"."
Error: Bad default value

The program will exit
All other scripts are working properly.

thx for your help
New AHK script: Bubble Factor Calculator Quote
01-09-2009 , 06:02 AM
Did you use the link two posts up?
http://overcards.com/wiki/moin.cgi/B...et=BBFv1.4.ahk
New AHK script: Bubble Factor Calculator Quote
01-09-2009 , 06:35 AM
yes, although I introduced a change of character while checking and testing the code.

Original grep functions by Titan reads :

Quote:
grep(h, n, ByRef v, s = 1, e = 0, d = "")
(in case there is nothing btw the quotes sign, there should be a square character)

when the scripts runs with the orignal code as posted above the error says :

Quote:
Error at line 1851

Line Text:" "
Error: Bad default value

The program will exit
with a square character inside the quotes, which I can't reproduce here, but you see it in the Titan functions.

I guess the error occurs only on my system (weird, as it is a fairly standard XP PC); maybe I need a way to use grepcsv in the script instead of grep.
New AHK script: Bubble Factor Calculator Quote
01-09-2009 , 07:03 AM
try
Code:
grep(h, n, ByRef v, s = 1, e = 0, d = ",")
New AHK script: Bubble Factor Calculator Quote
01-09-2009 , 07:13 AM
I get a varaition of the same error

Quote:
Error at line 1851

Line Text:"
Error: Bad default value

The program will exit
1 quote, followed by no character (no comma)

I should add that I tried several things already :

- a space
- a dot
- other characters

bud it didn't help
New AHK script: Bubble Factor Calculator Quote
01-09-2009 , 07:22 AM
also : another script (Stack Paster) using grepcsv and including but not using the grep part, does not show the problem once I commented out the grep part
New AHK script: Bubble Factor Calculator Quote
01-20-2009 , 07:07 AM
could you give me a hint as to how I should approach things to rewrite it with grepcsv ?

maybe the expected output ?
New AHK script: Bubble Factor Calculator Quote
01-21-2009 , 05:17 PM
Ok, I'm on my way to reprogram it without the grep; nice app
New AHK script: Bubble Factor Calculator Quote

      
m