I am creating my own poker game prototype as a hobby project. The game calculates the combinations every player has and decides a 5 card hand to be used when calculating a winner if players have the same combination.
The attached images show my exact scenario.
In this specific case there is a flush on the table and HUMANPLAYER and Ramon Tandheelkunde (a Dutch randomized name for fun) both split the pot because they have exactly the same five card hand. (See the image with the log). Lisa Rutte however, loses because her 9 of Hearts is added to her five card hand. Is this supposed to happen or should Lisa also win or be the only one to win since she has a hearts in her hand unlike the others?
Edit: Lisa Rutte actually gets a six cards hand instead of a five cards hand. This obviously is a bug but my issue is with her 9 of Hearts getting added at all making her lose. This happens because the game compares each five cards hand from left to right making Lisa kicked out of the race because her 9 is lower than the J's on that spot in the five card hands of the other players.
Thanks for thinking with me! :)
Kind regards,
Ricardo


Let's talk straights for a moment. If there is a straight on the table and no one has an adjacent card then everyone has the same five card hand so the pot is split.
Is it OK to apply this logic to a digital poker game without any intention to let players play with real money?
– Ricardo Frederiks Jul 02 '20 at 09:39