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
2
votes
0 answers

What is the most efficient way to extract visible data from a poker room and how does one implement this?

So I'm new to python and just finished my first application. (Giving random chords to be played on a midi piano and increasing the score if the right notes are hit in a graphical interface, nothing too fancy but also non-trivial.) And now I'm…
Mitchell Faas
  • 430
  • 6
  • 19
2
votes
4 answers

Get points over the tangent circle(or oval) and balance poker chips on

I try to display some chips for a free poker game (HTML/Javascript client, python server) game. There are seats around the center of the table. for each seats, i know cosinus, sinus, radius (distance from the center of the table), and the…
Dalou
  • 117
  • 6
2
votes
3 answers

Programming a probability to allow an AI decide when to discard a card or not in 5 card poker

I am writing an AI to play 5 card poker, where you are allowed to discard a card from your hand and swap it for another randomly dealt one if you wish. My AI can value every possible poker hand as shown in the answer to my previous question. In…
KOB
  • 4,084
  • 9
  • 44
  • 88
2
votes
3 answers

Do I need to initialize an ArrayList field with another Array in the constructor?

I'm making a poker game in Java, and our teacher doesn't know Java that well so his instructions were written by a teacher's aid. I'm trying to make a Hand.java class to serve as a storage space for two character Strings that will act as cards (ie.…
Yoleaux
  • 49
  • 6
2
votes
4 answers

How can I print all possible "full houses" in poker with Java?

I was wondering if anyone knew how to implement the code in java to print all cases of full house. There are roughly 3700 different cases. So far i'm around 2700 but I am having trouble changing the suits, her is what I have so far. public class…
Tony
  • 21
  • 2
2
votes
1 answer

Poker hand range chart visualization in R

Is it possible to make visualization of poker hand range chart in R like this? I want to show how many times player had certain hand, so there will be numbers with frequency. Little 5 under title AA if player had AA 5x times and so on. It would be…
EdWood
  • 875
  • 3
  • 19
  • 37
2
votes
1 answer

C++ inheritance with overloading not compiling?

I am making a Poker game in C++, and I am just trying to get started. I need the ability to compare "Hands", to see which one is greater, equal, or lesser. So, I have a Hand class now, and I made two other sub-classes that are called Straight and…
Erik343
  • 323
  • 4
  • 14
2
votes
1 answer

Get all possible 5 card poker hands given 7 cards

I'm trying to find the 21 5-card poker hands one can form given a 5-card board and 2 hole cards. Here's what I have so far: public String[] joinArrays(String[] first, String[] second) { String[] result = new String[first.length +…
anon_swe
  • 8,791
  • 24
  • 85
  • 145
2
votes
2 answers

IComparable and OrderBy. Trying to sort Poker hands with C#

I am attempting to create a simple program that analyzes the poker hands. Given n hands/players and the community cards (Texas hold 'em) I would like to determine the winner(s). However, my test is failing when I have two exact results - it only…
nullable
  • 2,513
  • 1
  • 29
  • 32
2
votes
1 answer

in R, how can I see if three elements of a character vector are the same out of a vector of length 5

I have a poker hand and I need to check for three of a kind. Is there a way to see if 3 elements in the vector are the same but the other 2 are different? E.g.: hand <- c("Q","Q","6","5","Q") Should return TRUE for three of a kind. hand2 <-…
dllmn3
  • 31
  • 1
2
votes
1 answer

Python Poker hand single pair counter

I wrote the program below to iterate through every possible poker hand and count how many of these hands are a single pair A hand is any 5 cards. A single pair is when two cards of the same rank (number) and the other 3 cards of all different ranks …
2
votes
1 answer

Checking for straight combination in poker

I want to check for a straight combination in a poker game. So, I have this array: var tempArr:Array = new Array; I have this for sorting the array: for (i = 0; i < 7; i++) { tempArr[i] = pValue[i]; } tempArr.sort( Array.NUMERIC ); pValue…
hotarufire
  • 23
  • 2
2
votes
1 answer

Private message Slack user via RTM

Has anyone figured out how to private message a user via Slack RTM? I'm trying to create a game and would like to PM a user in Slack to provide updates and such. You can see how far I am via the coffee script in src/poker.coffee in…
Rob Sawyer
  • 2,163
  • 1
  • 24
  • 25
2
votes
1 answer

Poker hand generator and evaluator

I'm sure this topic has been covered to bits, but I've spent hours trying to work something out and I can't find enough resources that explain the process. Please note, I am new to JS and still relying on tutorials and code snippets to write code.…
toms
  • 515
  • 6
  • 23
2
votes
2 answers

Java Poker Game - Change diamonds and hearts to red

I am working on a poker game in Java. I would like to know how to make the diamond and heart symbol red instead of white filled, since I cannot find it in the unicode list. Any help is appreciated. EDIT: I would like to know how to paint the symbols…
Brian
  • 187
  • 5
  • 15