![]() |
#21
|
|||
|
|||
![]()
surprisingly short code needed for this calculation
[ QUOTE ] <font class="small">Code:</font><hr /><pre> #get stacks #get payouts #EV = [0] * players def ap(str): if len(str) <=1: yield str else: for perm in ap(str[1:]): for i in range(len(perm)+1): yield perm[:i] + str[0:1] + perm[i:] for ele in ap(range(len(stacks))): [x,y] = [1,0] for j in range(len(stacks) - 1, -1, -1): x *= stacks[ele[j]] y += stacks[ele[j]] x *= float(1) / float(y) for j in range(len(stacks)): EV[ele[j]] += wins[j]*x print EV </pre><hr /> [/ QUOTE ] |
#22
|
|||
|
|||
![]()
[ QUOTE ]
[ QUOTE ] [ QUOTE ] [ QUOTE ] Seems to be some problems with the link. Tried to download it and the page is not coming up. [/ QUOTE ] I just downloaded it without a problem. Try right-clicking the link and selecting "Save Target As" ("Save Link As" in FireFox). [/ QUOTE ] Hmmm...tried it and said there were errors. Tried FireFox and it says C:\WINDOWS\Microsoft.NET\Framework\v2.0.5072\mscor wks.dll could not be loaded. [/ QUOTE ] You do not have the .NET Framework version 2.0 loaded. You can get it via Microsoft Update or Download from here. [/ QUOTE ] Thanks!!! |
#23
|
|||
|
|||
![]()
Yes, Mark1978 and Slim Pickens "showed me the way". I did it the hard way at first (about 150 lines of code). I enjoy doing these little projects because I learn a lot.
|
#24
|
|||
|
|||
![]()
[ QUOTE ]
Based on your feedback, I've updated the ICM Calculator to... <ul type="square">[*]Compute up to 10 places (A special thanks to Mark1978 and Slim Pickens for their help) [*]Added option to use Windows default color scheme[/list] You can download the latest version from HERE. I received a PocketPC Phone for Christmas, so I plan on porting this and other poker apps I've written to the mobile framework. [/ QUOTE ] Does anyone know of a pocket pc ICM calculator? |
#25
|
|||
|
|||
![]()
[ QUOTE ]
Does anyone know of a pocket pc ICM calculator? [/ QUOTE ] I want one on my cell phone. |
#26
|
|||
|
|||
![]()
[ QUOTE ]
Based on your feedback, I've updated the ICM Calculator to... <ul type="square">[*]Compute up to 10 places (A special thanks to Mark1978 and Slim Pickens for their help) [*]Added option to use Windows default color scheme[/list] You can download the latest version from HERE. I received a PocketPC Phone for Christmas, so I plan on porting this and other poker apps I've written to the mobile framework. [/ QUOTE ] I finally got off my ass and wrote an ICM calculator for the Pocket PC. It is designed to run on Windows Mobile 5, so your mileage may vary with other Windows Mobile versions. The program requires that you install the .NET Compact Framework 2.0. Once you have that installed, you can download the Pocket ICM Calculator HERE . Transfer the cab file to your Pocket PC, then run the program from the device. It will create a shortcut in your Games menu. Enjoy! |
#27
|
|||
|
|||
![]()
How difficult would it be to make a Palm version?
|
#28
|
|||
|
|||
![]()
I never saw this the first time around. Thanks Jets! This rocks.
|
#29
|
|||
|
|||
![]()
[ QUOTE ]
How difficult would it be to make a Palm version? [/ QUOTE ] I don't have a Palm, so it won't be built by me. |
#30
|
|||
|
|||
![]()
As I've just started off programming cellphones, I think in my vacations I'm gonna try to build some ICM-tool for those.
|
![]() |
|
|