pokereval()
Could this function (for example when "holdem" is the game type) be fixed so that when given 5 common cards and 3 dead cards, it will give 100%, 0% or 50%, no matter what iteration is given.
Here's some examples: NPC Code: In the above example, player 1 = winner with pair in 3 (should be 100%) Next example.. NPC Code: I have no idea why it shows it as 50/50 when it should show 100% to player 1 with a winning hand of pair in 7.. So, could the function be made to give 100% or 0% (and only 50% when it's a split) after the river card? (When 5 common cards and 3 dead cards are given as parameters) |
I'm going to assume you have some kind of a conditional checking each hand and comparing them to one another after the river card?
If anything just do a straight assignment if you're just incrimenting the percentage as you go once a winning hand is determined |
Quote:
Quote:
|
Yes, I'm talking about the in-built one (Thanks Chris for pointing it out).
So, Stefan, think it could be fixed? |
The function has been added for Adrenaline Poker. It's normally only used for calculating the chance that a bot is winning so that it can base it's decisions on it, it's currently not used though. I'm not sure if it can also be used to calculate which player is actually winning, but may be it can and the parameters are just not correctly given, so may be post an example of the parameters you are giving to the function (dead cards should be empty for holdem).
|
PHP Code:
Was thinking of using the function for card games (poker of course :p) and such and I needed a way to determine the winner of the pot |
All times are GMT +2. The time now is 12:11 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.