Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2007, 05:10 PM
WutRUTryin2Hit WutRUTryin2Hit is offline
Senior Member
 
Join Date: Mar 2006
Posts: 649
Default programming question: I\'m writing a simple odds-calculator...

Hi guys,

I want to program a simple odds-calculator program, largely because I am learning a new language and this seems like a decent little test project to learn the basics. I was just wondering, how do most of these work, I used to assume they just went through every possible outcome (of what cards come on the board) and came up with the percentage, but it seems like pokerstove maybe does it differently and just does a zillion random tests. What's the best way to do this, what's the standard?
Reply With Quote
  #2  
Old 11-20-2007, 05:15 PM
TheCutter TheCutter is offline
Senior Member
 
Join Date: Jan 2006
Posts: 371
Default Re: programming question: I\'m writing a simple odds-calculator...

Pokerstove mostly uses the enumerate-option that goes through all. There are libraries that can do this for you.
Reply With Quote
  #3  
Old 11-20-2007, 05:29 PM
WutRUTryin2Hit WutRUTryin2Hit is offline
Senior Member
 
Join Date: Mar 2006
Posts: 649
Default Re: programming question: I\'m writing a simple odds-calculator...

Ah ok. Libraries sound cool, but I'm doing this in php so probably there aren't I'd assume.
Reply With Quote
  #4  
Old 11-20-2007, 05:43 PM
Adrian20XX Adrian20XX is offline
Senior Member
 
Join Date: Dec 2005
Posts: 172
Default Re: programming question: I\'m writing a simple odds-calculator...

Enumeration is used in the normal scenarios, and Monte Carlo (simulation) is mostly used when there are multiple players with random cards.

Check this thread, you'll find plenty of code and ideas.

http://forumserver.twoplustwo.com/showfl...part=1&vc=1

Regards ...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.