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

Python: Best way to parse the following

I have a string of poker hands that looks like this: AA:1,KK:1,AK:1,AQ:0.5,AJs:1,ATs:1,... The number after the hand represents the weight from 0-100%. I then convert this into a dictionary that I can read the weight of the hand. The problem is the…
lessharm
  • 65
  • 13
0
votes
0 answers

Why do i get a NullPointerException when loading in ImageViews

I am currently making a poker game in java. The model works just fine. I do however also have to make a proper view for the game. I have to use javaFX scenebuilider as well as a graphic view class with actual code. In order to do this I made a…
haes
  • 11
  • 5
0
votes
2 answers

Poker game/ PYTHON : How do I have the big/small blinds rotate every turn

Poker game in python: NEWB here. How do I have the big/small blinds rotate every turn.I call this function in my main. Any help is appreciated. Code: poker table function: def post_blinds(self,smallblind,bigblind): self.smallblind =…
RageAgainstheMachine
  • 901
  • 2
  • 11
  • 28
0
votes
1 answer

C# Poker How to check if players have different hands

I'm developing a Poker Texas Hold'Em app I have all the combinations working but i cant seem to find a compact way to check which player has the highest combination and the type of it here's some of my code void Rules(int current,int Power) { …
user5178825
0
votes
1 answer

Using comparator with poker hands: error with compare method

I'm trying to sort poker hands using a custom compare function. A poker hand is represented as a 5-element String array. I've written a class called HandComparator that has a method as follows for comparing hands: //return 1 for a being better…
anon_swe
  • 8,791
  • 24
  • 85
  • 145
0
votes
1 answer

Calculate Poker Hand Odds

I am using the this hand evaluator found here for nodejs: https://github.com/chenosaurus/poker-evaluator It works great and it's really fast at evaluating hands. However, I want to use it to write a script to caluclate the % chance of winning a…
Patchesoft
  • 317
  • 6
  • 21
0
votes
1 answer

Haskell Variable Updation

I'm building a game (kind of poker) in haskell but i'm new to haskell and generally get stuck when try to think how to implement a thing in purely functional language.* Game is of 3 players(Just to make it easy to explain). Two players will play …
user2754673
  • 439
  • 3
  • 13
0
votes
2 answers

Running Java Poker Game

I have to write a program that creates 5 decks of 5 random cards chosen, and evaluate them to return the value of the deck. Etc. 9 is a royal lush and a 2 is a 2 pair. I have three classes so far. One to represent the Card, One to represent the…
Gabriel Beru
  • 17
  • 1
  • 1
  • 2
0
votes
2 answers

Deal Distinct Poker Hands

I am trying to generate a text file of distinct 5-card poker hands, very similar to this question (which I actually posted an answer to). The program I pieced together from this answer to that question mostly works. However, there are two major…
Dave Johnson
  • 825
  • 16
  • 27
0
votes
0 answers

Using a Poker Hand Evaluator for Ranking Horse Race Results

Can I use any of the popular Poker Hand Evaluation programs to Rank Predictions of Horse Race Outcomes? A Contest requires players to Rank the Probable Finish Order of X number of Horses in a Horse Race. Because there will usually be no more than 13…
Pseudoego
  • 121
  • 4
0
votes
1 answer

Getting information from a text box - Full Tilt Poker

Full Tilt Poker's GUI has a box of text that keeps reporting on the state the current hand. I wanted to be able to parse that text but do not know how to gain access to it, so if anyone could point me in the proper direction, I would appreciate it…
hassaanm
  • 14,539
  • 4
  • 21
  • 20
0
votes
1 answer

In server-client poker game, what is the best way to notify user about user's turn when app is in background

I am developing server-client model poker game, In which all game logic handling by server. I have a situation, when user tap home button in the middle of the game suppose 4 players playing a poker game. and the iPhone user tap home button, So app…
user4388479
  • 19
  • 1
  • 6
0
votes
1 answer

Formula to calculate chances (poker probability)

The chance to have any 5 cards in poker is C(52,5) = 52! / [5!(52-5)!], so it is any 5 cards from all 52 possible cards. I tried using =prob(52,5,1,52) function, but I have no idea how to write it to get the correct outcome of 2598960. I was…
Damian
  • 25
  • 3
0
votes
1 answer

Find multiple pairs (two pair and/or full house) in an array

int count = 1, maxCount = 0, elem = 0, maxElem = 0; for (int i = 0; i < players; i++) { for (int j = 1; j < 7; j++) { if (arr[i][j] == arr[i][j - 1]) { count++; elem = arr[i][j - 1]; } else { …
user3213110
  • 199
  • 4
  • 14
0
votes
1 answer

Multidimensional array in poker program

I'm not sure how to make the multidimensional array able to perform the same task as the other three I am supposed to get rid of. Would I just simply replace all the places with the other arrays with just the one Multi? This is especially hard for…
Murder face
  • 41
  • 1
  • 8