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

Sorting hands poker to find the winning hand

I'm currently making a hand evaluator for poker (5 card). Firstly I deal the hands (not from the same deck) and then I check if each has a pair, three of a kind etc, once a match is found lets say a pair of aces, the hands rank will be set to 2…
beardedranga
  • 31
  • 1
  • 3
0
votes
1 answer

Exception in thread "main" java.util.NoSuchElementException Scanner error

I am getting this error and cannot figure out how to fix it. The class tutor couldn't figure it out. It is a poker program that deals out a hand, allows the user to replace up to 4 cards, and then analyzes it. It is designed to allow the user to…
Josh
  • 71
  • 1
  • 2
  • 11
0
votes
3 answers

C++ Small Straight (like yahtzee or poker). 5 Dice roll (1234)/(2345)/(3456)

Im a beginner with C++ and this is for homework but Im stuck. I have one remaining problem and then im finished. I can'T think of an algorithm that will tell if the user entered a small straight (1234) or (2345) or (3456). I know how to do it…
R4g323
  • 21
  • 1
  • 3
  • 9
0
votes
3 answers

poker dice in java - not giving scores properly

I want to create a poker dice game in java, and when the player rolls the dice, I want the program to tell the results and the current score. However, something is wrong. It isn't giving me properly the score. For example, I changed the the Math…
Ana Grou
  • 19
  • 1
  • 9
0
votes
1 answer

How to check Full House combination Poker in Flash CS6 AS3

I want to ask a function to check Full House combination in Poker. So far i have this code : for (a=0 ; a<2 ; a++) { for (b=a+1 ; b<7 ; b++) { if (pValue[a] == pValue[b]) { pair++; for (c=b+1 ; c<7 ;…
hotarufire
  • 23
  • 2
0
votes
1 answer

Pseudocode for progressing a poker game

I'm creating a single function called progress() that is called after a player acts. I think there are only 3 possible ways to end a poker game: Game ends normally, there are 2 or more players until last round ends, do the "showdown" phase, and…
topher
  • 1,357
  • 4
  • 17
  • 36
0
votes
1 answer

Need help iteratating over an array, retrieve two possibilites, no repeats, for Poker AI

I can't really think of a good way to word this question, nor a good title, and maybe the answer is so ridiculously simple that I am missing it. I am working on a poker AI, and I want to calculate the number of hands that exist which are better…
user331570
  • 49
  • 1
  • 4
0
votes
0 answers

Creating something that Checks if its a Royal Flush

Im trying to check to see if a hand in poker is a Royal Flush. However, when I keep checking it, it comes up as Straight Flush and not Royal Flush. I have modified it slightly but am unable to check it because I forgot to send myself one of the main…
Jack Armstrong
  • 1,182
  • 4
  • 26
  • 59
0
votes
1 answer

How to flip an image in Xamarin Android?

I'm creating Poker game. So initially I'm showing back face of playing cards and then I need to add flip animation on the cards to show the value of cards. I've searched the net but I didn't find anything that could have helped me. my code is as…
Sumit Chourasia
  • 2,394
  • 7
  • 30
  • 57
0
votes
3 answers

Java 7 card poker hand evaluator

I'm trying to create a hand evaluator that it will allow me to compare if one hand is better than another. I know there many other post on SO about this topic however many of them are old now and the links no longer link to anything useful. The only…
Alex
  • 627
  • 3
  • 12
  • 32
0
votes
0 answers

Fortune Merrit Mental Poker for dummies (with TTP)

It seems that the book writers have quite a talent at making a relatively simple concept incredibly complex to understand. Could someone perhaps explain how fortune merrit works using pseudo code, PHP or perhaps relay it using other simple means? It…
Alex S
  • 9
  • 2
0
votes
2 answers

Java: Poker Hand

So, I have to create a poker hand program using functions/methods and arrays. Here's a sample output I need to have: Enter five numeric cards, no face cards. Use 2 - 9.Card 1: 8 Card 2: 7 Card 3: 8 Card 4: 2 Card 5: 7 Two Pair! Enter five…
user3385997
  • 67
  • 2
  • 12
0
votes
4 answers

How do I extract the highest value from a set of sequential numbers within an array?

I'm trying to calculate whether or not a user has a straight in a poker hand using values from an associative array. Each player's hand is inside the same array, the structure of which being similar to this:
jerdiggity
  • 3,655
  • 1
  • 29
  • 41
0
votes
3 answers

Each Player in my Java Poker Game uses their own deck

Hello i am trying to create a game of Video Poker. This is part of what I have so far (I did not include enums, imports, variables, toStrings, etc. in order to save space): My Card class defines our cards: public Card(Value value, Suit suit) { …
t3rrh42d2
  • 134
  • 1
  • 2
  • 10
0
votes
0 answers

Isoltating a certain element in a HashSet in Java

I am making a poker game and to generate a hand that contains non-duplicated I decided to use a HashSet and for-loop to give the player 5 cards. public class CardDriver { public static void main(String[] args) { Set hands = new…
t3rrh42d2
  • 134
  • 1
  • 2
  • 10