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

Making a simple poker game

I'm making a simple poker game to print the probability of getting: 1 pair, then 2 pair, then 3 of a kind and 4 of a kind. What I want to do is make it where we have the user who gets a hand of 5 cards. Then have it where you traverse through the…
l.m
  • 131
  • 1
  • 10
-1
votes
3 answers

Writing a constructor for a poker game in Java

there is already a class called Card.java with 52 cards. And in the Deck.java i have to write a constructor to initialize the 52 cards in a row with suite and value. i wrote the following code but it failed the public test..Can anybody help me…
javaLearner
  • 25
  • 1
  • 7
-1
votes
1 answer

Python Multiindexing and custom sorting

I have a pandas series (edit: whoops meant dataframe) as shown here: image I have two questions. First, what is the syntax to display/return all winning hands where Players at Table = 4, and Players to Showdown = 2? Secondly, I am trying to then…
mdawg
  • 49
  • 5
-1
votes
1 answer

How do I make my Random generator of poker cards to end when cards are over?

Android version: 4.2 I am developing an android App. I need to generate images from drawable folder randomly and set the text to say which card is been selected. I wish my app to enumerate every card randomly selected without repetitions until the…
-1
votes
1 answer

Creating a Deck of Cards?

I currently am working on a poker simulator and I am having trouble creating a deck of cards. My current code creates the deck public Deck() { int index = 0; cards = new Card[52]; for(int cardValue = 1; cardValue <= 13; cardValue++) { …
John Terry
  • 61
  • 2
  • 8
-1
votes
1 answer

Poker hand strength

I've programatically determined hand rankings as added below. However, the issue is - if per say, two players end up with a pair.. How do I determine the winner? To each card object I've added a prime number value. Ace being 41 and deuce being 3…
Daniel
  • 31
  • 4
-1
votes
1 answer

Java Poker Program with if Statement won't output any results

I am completely new to Java and I don't know enough about arrays to do this in a different manner. Can you tell me why nothing will output even when my hand gives me numbers that are next to each other? public class PokerHand { public static…
-1
votes
1 answer

Am I on the right track for determining the poker hand type?

So for my class, we're supposed to make a simplified version of poker. For example, an array {1,2,3,4,5} would be a straight, while an array {1,1,1,4,5} would be a three of a kind. I've done everything except for determine what kind of hand the user…
-1
votes
1 answer

Make use of java poker-eval library

I want to make use of the poker-eval library. I heard that it's very used in C. In this link. i see that it has a java folder. Is it possible for me write a Java program that uses this library? How would i go about doing that? I tried to go to…
vanmarcke
  • 133
  • 1
  • 1
  • 7
-1
votes
2 answers

How do poker calculation apps work and are they realizable in JavaScript?

I have two questions regarding poker calculation (e.g. calculate odds) apps. How do poker apps work generally? I mean which technique is used to find the cards on the screen and to get their value? There must be an algorithm filtering the whole…
Pawel
  • 1,560
  • 1
  • 10
  • 11
-1
votes
1 answer

poker game straight in java

my problem is that this is sound logic but the execution is incorrect (the submit server won't take it). So I'm trying to check if my hand of 5 cards has a straight (that's 2, 3, 4, ,5 6, etc. numbers in consecutive order) and then if the fifth card…
emmynaki
  • 157
  • 2
  • 10
-1
votes
1 answer

java poker game nullpointer

I'm getting a null pointer exception for this and I'm not sure why public static boolean hasPair(Card[] cards) { int k=0; cards = new Card[5]; for (int atPos = 0; atPos<5; atPos++){ for (int atPos2 = atPos+1; atPos2<5;…
masonft
  • 9
  • 5
-1
votes
1 answer

Card Shuffle and Distribution in R

I am trying to simulate a game of poker where I am required to distribute cards to "n" number of players playing at one point. I have written a brief piece of code that looks at the existing deck and gives out cards to other players however this is…
Ayan CH
  • 1
  • 4
-1
votes
2 answers

Counter error "The type of the expression must be an array type but it resolved to int"

I am attempting to write a 3 card poker game and have ran into a " The type of the expression must be an array type but it resolved to int" error that I am baffled by. The error does not seem to like the way I have done my counters but I am pretty…
Sam
  • 31
  • 3
-1
votes
1 answer

Python 3.4 Poker Position of Hero

I have a poker table with 9 seats represented as a list of players and the button position. I have to calculate the position of Hero(UTG, Middle Position, Late Position, CO, BB, SB...). Some seats could be empty, in this case the place is filled…
F. Noe
  • 21
  • 3