Hello!
I'm using 2 programs to solve poker hands: PIO and GTO+.
In order to solve specific problems, I need to attribute a range of hands to hypothetical players.
The problem is that the syntax in which I need to input my range in one program is different than on the other one.
I would like to build a converter using Visual Studio 2019.
For example, this PIO string:
AA:1,AKs:0.8881,AJs:0.5286,ATs:0.2036,A5s:0.4068,A4s:0.2365,A3s:0.000449,AKo:0.08352,KK:0.4128,KQs:0 .4294,KJs:0.375,KTs:0.1949,AQo:0.3203,QQ:0.4011,JJ:0.1021,TT:0.1678,99:0.1441,88:0.1039,77:0.01374,6 6:0.2679
would need to be converted to this GTO+ string:
AA,[88.81]AKs[/88.81],[52.86]AJs[/52.86],[20.36]ATs[/20.36],[40.68]A5s[/40.68],[23.65]A4s[/23.65],[0.04]A3s[/0.04],[8.35]AKo[/8.35],[41.28]KK[/41.28],[42.94]KQs[/42.94],[37.50]KJs[/37.50],[19.49]KTs[/19.49],[32.03]AQo[/32.03],[40.11]QQ[/40.11],[10.21]JJ[/10.21],[16.78]TT[/16.78],[14.41]99[/14.41],[10.39]88[/10.39],[1.37]77[/1.37],[26.79]66[/26.79]
For PIO, the first "value" is the hand (the two cards we are dealt), for example AKs means Ace King suited (so Ace of hearts and King of hearts, for example) and the second value is simply a frequency, in %
For GTO+, the format is [frequency]HandValue[/frequency]
I know this should be pretty simple and I tried researching the SplitString function, but I just can't seem to make it work.
Any help would be greatly appreciated!
I'm using 2 programs to solve poker hands: PIO and GTO+.
In order to solve specific problems, I need to attribute a range of hands to hypothetical players.
The problem is that the syntax in which I need to input my range in one program is different than on the other one.
I would like to build a converter using Visual Studio 2019.
For example, this PIO string:
AA:1,AKs:0.8881,AJs:0.5286,ATs:0.2036,A5s:0.4068,A4s:0.2365,A3s:0.000449,AKo:0.08352,KK:0.4128,KQs:0 .4294,KJs:0.375,KTs:0.1949,AQo:0.3203,QQ:0.4011,JJ:0.1021,TT:0.1678,99:0.1441,88:0.1039,77:0.01374,6 6:0.2679
would need to be converted to this GTO+ string:
AA,[88.81]AKs[/88.81],[52.86]AJs[/52.86],[20.36]ATs[/20.36],[40.68]A5s[/40.68],[23.65]A4s[/23.65],[0.04]A3s[/0.04],[8.35]AKo[/8.35],[41.28]KK[/41.28],[42.94]KQs[/42.94],[37.50]KJs[/37.50],[19.49]KTs[/19.49],[32.03]AQo[/32.03],[40.11]QQ[/40.11],[10.21]JJ[/10.21],[16.78]TT[/16.78],[14.41]99[/14.41],[10.39]88[/10.39],[1.37]77[/1.37],[26.79]66[/26.79]
For PIO, the first "value" is the hand (the two cards we are dealt), for example AKs means Ace King suited (so Ace of hearts and King of hearts, for example) and the second value is simply a frequency, in %
For GTO+, the format is [frequency]HandValue[/frequency]
I know this should be pretty simple and I tried researching the SplitString function, but I just can't seem to make it work.
Any help would be greatly appreciated!