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
1
vote
1 answer

Checking Poker Hands

I been having some issues checking poker hands. So in this code we choose how many decks we want to play with and then the rest is like video poker. My issue is that some of the hands checked are "seen". For the straight, I assume because I have it…
user3051442
  • 149
  • 3
  • 12
1
vote
2 answers

Unhandled Exception in Poker Game

I've got a multi-part program (2 java files) that are supposed to do two things: Make a deck of cards (with shuffle, deal, reset) Create a poker game (making two decks of cards, other stuff...) There's a barrier I'm hitting because of this…
1
vote
1 answer

Are there popAt, peekAt in Java Stacks, since it inherits from other classes?

Stack has methods peek() and pop(), which affects the object on top of the stack, but since it inherits from other Classes, are there methods that can peek at eg. 4th element of the stack and pop 3rd element? Why am I asking? I need to store 5 cards…
Naan
  • 521
  • 1
  • 11
  • 28
1
vote
3 answers

Draw a Card from a Deck for a Monte Carlo Simulation of Poker

At the moment I am working on an iOS-application in which I need to draw random cards from a carddeck. At the moment my Code looks like this: - (PlayingCard*) drawRandomCard { PlayingCard * randomCard = nil; NSUInteger index =…
Robin des Bois
  • 355
  • 2
  • 6
  • 20
1
vote
1 answer

magic sequence of cards recursive algorithm

I was asked this question in an interview and I couldnt answer completely. Infact the interviewer himself was confused. Was wondering if anyone knew the clear details of the question and the answer as well. From what I remember, the question is…
adne
  • 111
  • 1
  • 10
1
vote
6 answers

Object representation of betting rounds at poker

I'm writing a HandConverter of a poker hand. This is my first project and I'm trying to do it right from the beginning. I got already the most parts, like lists of players, their position, stack sizes, cards for different boards, what game is being…
Sven
  • 2,839
  • 7
  • 33
  • 53
1
vote
1 answer

Interact with client software

I know there isn´t an answer for this, but i´m a nooby at computer ingeniering and I want to know what I should read or study about for being capable to interact with a desktop client software. Here is an example: I play poker, and I want to be able…
1
vote
3 answers

Texas Hold'em poker recognizing full house

I'm creating a console texas hold'em poker. I'm already done making this game, everything works as supposed, expect for a full house for which I became undecided for a best way to write a code. This is how I present cards: "D5", "S2", "SA"... I know…
Johannes
  • 113
  • 5
1
vote
1 answer

How can I find the highest poker hand from a 9 card hand between 4 players?

I've tried to look through several sources online and they all deal with 5 card and 7 card hands. Also, I'm not really looking for the code, I'll try to do that on my own (although perhaps if you're willing, I'm looking to implement this in either…
Kaylie
  • 13
  • 5
1
vote
2 answers

Poker Hand Evaluation with Jokers

I've written a Naive Poker Evaluation algorithm for a Hold 'Em Poker game I'm developing and I'm wondering what would be the best way to evaluate Jokers within these hands. A thought I had would be to replace the joker with each card from the deck…
Prat
  • 495
  • 7
  • 19
1
vote
1 answer

C++ Image analyzing + pressing buttons

I have an idea to make a program that would analyze a running program, make a decision and push one of three buttons in that program. I want to ask: A) How should image analyzing work? My idea is to take a screenshot of a window, find out where that…
Ufikas
  • 22
  • 1
  • 6
1
vote
1 answer

VBScript Poker Game -- What hand do I have?

Odd little project I am working on. Before you answer, yes, I know that vbscript is probably the worst language to use for this. I need help determining what each player has. Each card has a unique number (which I 'translate' into it's poker value…
Jeff
  • 4,285
  • 15
  • 63
  • 115
1
vote
1 answer

Prolog - get X possible cards from a deck

I am writing a Poker program in Prolog and I your help. I want the computer to check, what kind of hands he could still get with the cards that are already lying on the table and in his hand. To do this, I need to fill in the remaining cards with…
1
vote
1 answer

Assigning char to int

I'm making a poker game, and i have the shuffle function (based in other answer here). Now my problem is, how can i assign the name of the card to each number of the array, for example i want cartas[3] = "J spades". I thinked in a bidimensional…
xacobe97
  • 51
  • 1
  • 5
1
vote
1 answer

Enumerating over all poker head to head hands

There are possible head-to-head match ups in Hold 'em. Assuming I have an array with each card, how can I enumerate all these match ups? For example, to enumerate all possible starting hands is: for (int a = 0; a < 51; ++a) { for (int b = a + 1;…
grom
  • 15,842
  • 19
  • 64
  • 67