Poker-AI.org

Poker AI and Botting Discussion Forum
It is currently Mon Nov 13, 2023 1:34 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon May 15, 2017 8:30 pm 
Offline
Junior Member

Joined: Wed May 03, 2017 4:42 pm
Posts: 10
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.


Top
 Profile  
 
PostPosted: Tue May 16, 2017 6:44 am 
Offline
Senior Member
User avatar

Joined: Sun Mar 10, 2013 10:31 am
Posts: 139
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.


Top
 Profile  
 
PostPosted: Wed May 17, 2017 11:14 am 
Offline
Junior Member

Joined: Wed May 03, 2017 4:42 pm
Posts: 10
Thanks. I got it working right now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group