Poker-AI.org
http://poker-ai.org/phpbb/

How to calculate number of community card combinations?
http://poker-ai.org/phpbb/viewtopic.php?f=22&t=3045
Page 1 of 1

Author:  CaptnCanary [ Mon May 15, 2017 8:30 pm ]
Post subject:  How to calculate number of community card combinations?

Hi guys. I'd like to calculate the total number of 5 card combinations possible after hole cards have been dealt. The order of the cards does not matter but suits do.
I thought something like 48*47*46*45*44/4!/5! = 71346.

But I can only find 15180 when trying to find then in nested for loops.

Author:  nefton [ Tue May 16, 2017 6:44 am ]
Post subject:  Re: How to calculate number of community card combinations?

https://www.mathsisfun.com/combinatoric ... tions.html

You need C(n,r) = n!/r!/(n-r)!
if you had 48? cards in a deck it will be C(48,5) = 48*47*46*45*44/5! = 1712304

for 50 unknown cards it will be C(50,5) = 2118760

Quote:
But I can only find 15180 when trying to find then in nested for loops.

Show your loops, there is some mistake here i think.

Author:  CaptnCanary [ Wed May 17, 2017 11:14 am ]
Post subject:  Re: How to calculate number of community card combinations?

Thanks. I got it working right now.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/