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
3
votes
1 answer

Two plus Two Poker hand evaluator: How are the cards mapped to the integers?

In an effort to create the fastest possible monte carlo texas hold'em hand analyzer with C++, I am currently looking into the subject of hand evaluation. As many of you may know, there are quite a number of hand evaluators, open source, out there.…
Mark Anderson
  • 2,399
  • 3
  • 15
  • 21
3
votes
3 answers

Texas Hold 'em recognizing one pair

I'm having trouble with my program recognizing a one pair ONLY AFTER it first checks for a two pair. When checking for the one pair first it finds it ok. But when I check for the two pair first then check for a one pair it doesn't find it. Any…
MM-MikeSauce
  • 35
  • 1
  • 5
3
votes
2 answers

Poker and handling money in the pot with SQL transactions for consistency

I was wondering how to handle money in a SQL database to maintain consistency. I presume the tables would look something like below. Consider the following scenario: if two players are playing then the money they wagered has been deducted from both…
user782220
  • 10,677
  • 21
  • 72
  • 135
3
votes
5 answers

finished writing a poker hand evaluator looking for a new project

just finished writing a five card poker hand evaluator in C++. now im looking for a new project about the same level of difficulty. maybe a very simple DOS command parser?
TheFuzz
  • 2,607
  • 6
  • 29
  • 48
3
votes
0 answers

How does poker tracking software evaluates live hands

I'm just curious how they make this kind of software. Do they? Capture the screen and use an OCR library to track hands Determine the memory locations of the hands and read it directly from there Something else? Edit/ I really mean live tracking,…
J. Maes
  • 6,862
  • 5
  • 27
  • 33
3
votes
2 answers

Shuffling a deck in Java

I have another exercise I have to do that I really need help with. I don't even know if my isFlush method is working because for seem reason my deck isnt shuffling and dealing a hand and I'm completely stuck. Can someone help me or point me in the…
Eric Pic
  • 43
  • 1
  • 3
3
votes
1 answer

Poker game: creating a deck with java

I am working on a project to create a poker game. Even though the instructions are pretty clear, I am having so much trouble with object-oriented programming. So for this project, we have to create four objects, Card, Deck, Hand, and Poker Hand. I…
ScoutBlade
  • 125
  • 1
  • 6
  • 13
2
votes
1 answer

how to retrieve general informations from a open source package, eyes on poker-eval library

I download the poker-eval library, a open-source resource for poker. I can't install, and get a brief description about the basic functions. So i have a question, how do you retrieve the basic information on an open-source library?
optimusfrenk
  • 1,271
  • 2
  • 16
  • 34
2
votes
1 answer

How do I fix this problem printing playing cards using unicode in python?

I am trying to print ascii playing cards for a poker game but it's not working as planned. I tried printing playing cards using unicode for my poker program in python but when I use the unicode the console comes up with this error: "SyntaxError:…
wildflower
  • 19
  • 3
2
votes
0 answers

Efficient methods of getting Texas Holdem Poker win probabilities

I just found this amazing Texas Holdem Poker odds calculator here: https://www.888poker.com/poker/poker-odds-calculator Key features are that it is able to calculate odds with unknown other player cards, variable player numbers and variable play…
2
votes
1 answer

Selecting a range of poker hands from a matrix

I am looking for any direction on how to implement the process below, you should not need to understand much at all about poker. Below is a grid of possible two-card combinations. Pocket pairs in blue, suited cards in yellow and off-suited in…
Emobe
  • 660
  • 11
  • 32
2
votes
3 answers

Trying to include pypoker, poker-eval package in Python

Ok, so I finally got poker-eval and pypoker to install correctly. If I go to the pypoker folder in cygwin, and type python test.py, it runs the program fine. However, if I copy the test.py file over to a netbeans project main file, I get the error…
ULcajun
  • 143
  • 1
  • 3
  • 8
2
votes
2 answers

Java - How to evaluate the best high card hand?

I am making a poker application. Yet, I am stuck on evaluating the high card. (I know how to get the high card, but what if the high card of 2/3 players is the same?) My list is ordered so that is not the problem. The problem is that I don't know a…
2
votes
1 answer

Python - Poker Custom Ranges Lists , issue with output structure

import itertools ranks = '23456789TJQKA' deck = [r+s for r in ranks for s in 'dchs'] allholdemhands = [i for i in itertools.combinations(deck,2)] def allcombos(hand,group): 'give all combos of a given hand for a given game' return [i…
2
votes
2 answers

Using mod operator in JavaScript to wrap around

I am building a Texas Hold'em Poker web application using ReactJS. In order to keep track of the dealer button, I am using the following formula... let currentPlayers = [ {name: "Foo", position: 1}, {name: "Bar", position: 2}, {name:…
mega0319
  • 25
  • 5