I need a PHP function that will return the odds of winning for each card like this "[url removed, login to view]".
Keep in mind that the link above uses a c++ open libray which means that if you know c++ u can just transalte it to php.
The function will have 4 inputs:
-The number of players(1-12)
-An array with all player cards like this [10_s , 9_h , 3_d , A_c] ,Which means that the first player has 10 of spades with 9 of hearts and the second player will has 3 of diamonds with Ace of [url removed, login to view] means that the array will have 2 times the number of players as length.
-An array of table cards with length 0-5 .The function must work with or without table cards so this array could be empty.
-An array with burned cards . The function must work with or without this too so this array could be empty.
The function will return an array with the winning , tie for each players .Which means that the array will have 2 times the number of players as length.
No graphics or interface needed just the php function.