Questions tagged [poker]

Questions relating to development on the subject of all variants of poker.

Questions in this category contains all aspects of development relating to poker - ie. hand evaluation, game engine, statistics, etc.

464 questions
10
votes
5 answers

working with HUGE lists in python

how can I manage a huge list of 100+ million strings? How can i begin to work with such a huge list? example large list: cards = [ "2s","3s","4s","5s","6s","7s","8s","9s","10s","Js","Qs","Ks","As" …
scott
  • 1,531
  • 2
  • 16
  • 29
9
votes
3 answers

Determining winning amount in Poker without creating side-pots

I'm trying to run a poker simulation and have the following data about a poker table how much each player contributed to the pot a "hand score" (after flop) for each player (ie, if player[0].score == player[1].score, they tied) I'm stuck…
Lem0n
  • 93
  • 3
9
votes
4 answers

Algorithms for testing a poker hand for a straight draw (4 to a straight)?

I'm in the throes of writing a poker evaluation library for fun and am looking to add the ability to test for draws (open ended, gutshot) for a given set of cards. Just wondering what the "state of the art" is for this? I'm trying to keep my memory…
John Carter
  • 6,752
  • 2
  • 32
  • 53
9
votes
4 answers

c# check for a poker straight

I am trying to write a poker hand evaluation method in c#. I have managed to do this for every poker hand using linq except a straight. For those that don't play a straight is made up of 5 cards with increments of 1 for each card. Ace can be high…
9
votes
1 answer

php poker generated random results do not match what is expected

I have made a research on poker equities. What I did is use pokerstove program with some selected. And with that program calculated the equities using enumerate all method. So pokerstove results: I also made a table where I store the random…
Dariux
  • 3,953
  • 9
  • 43
  • 69
8
votes
4 answers

Implementing a Dynamic Award System

I have been developing a Online Poker Game. But I keep hitting a wall. I want to implement Awards into the system, but I want them to be dynamic. Meaning I don't want to recompile for every award I would like to add. I have thought about using…
Johann du Toit
  • 2,609
  • 2
  • 16
  • 31
8
votes
3 answers

Algorithm to give a value to a 5 card Poker hand

I am developing a poker game as college project and our current assignment is to write an algorithm to score a hand of 5 cards, so that the scores of two hands can be compared to each other to determine which is the better hand. The score of a hand…
KOB
  • 4,084
  • 9
  • 44
  • 88
8
votes
2 answers

C# Poker Libraries

I'm building a simple poker website for a demo. Anyone know where I can find a set of classes encapsulating card, deck, hand etc. ? Google is not being very helpful, (most links are to codeproject which is down until 1pm EST - I'm in…
Jimmy Collins
  • 3,294
  • 5
  • 39
  • 57
8
votes
5 answers

Design Pattern: Parsing similar, but differing schemas in text files

thanks in advance for your help. I am wondering if there is a (design) pattern that can be applied to this problem. I am looking to parse, process, and extract out values from text files with similar, but differing formats. More specifically, I…
JWD
  • 12,188
  • 3
  • 34
  • 32
7
votes
4 answers

On Two Plus Two poker hand evaluator, how do you get the best 5 cards combination out of the 7 that you passed to it?

Is it possible to extract that info from the equivalence value? I understand that the higher the equivalence value the better. Category and rank can also be extracted from the equivalence value. But is there a way to find out what the best 5 cards …
ian
  • 1,505
  • 2
  • 17
  • 24
7
votes
2 answers

Mental Poker Toolkit

Can anyone suggest a toolkit or framework (or maybe an idea) that can be useful to implement secure and cheat-resistant online poker (texas hold'em) client without trusted third party server?
Andrei Petrenko
  • 3,922
  • 3
  • 31
  • 53
7
votes
10 answers

Function to determine whether a poker hand is a straight?

For a homework assignment I was given a Card class that has enumerated types for the Rank and Suit. I am required to compare two poker hands (each hand is an ArrayList of 5 cards) and decide the winner. The isStraight() function is really bothering…
Logan Serman
  • 29,447
  • 27
  • 102
  • 141
6
votes
5 answers

Algorithm to determine the winner of a Texas Hold'em Hand

Ok, so I am making a Texas Hold'em AI for my senior project. I've created the gui and betting/dealing procedures, but I have reached the part where I need to determine who won the hand, and I do not know the best way to approach this. I am using…
ULcajun
  • 143
  • 1
  • 3
  • 8
6
votes
4 answers

Array.reduce on a multidimensional array to array of objects

In my poker app I have an array of hands, each hand being array of randomly selected card objects with value and suit: [ [ { value: 5, suit: 's' }, { value: 4, suit: 's' }, { value: 6, suit: 'c' }, { value: 11, suit: 'd' }, { value:…
Jackson Lenhart
  • 630
  • 3
  • 7
  • 19
6
votes
1 answer

Determine Poker Table Positions - Sit'n Go Tournaments

Note: I do the javascript code according to the ajrwhite answer. Hope it helps someone. Link: http://codepen.io/eMineiro/pen/EKrNBe Open codepen console to see the examples working. In poker we define player position according to the dealer. Like…
1
2
3
30 31