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

Poker five in Java in boolean[][] array

I have problem with recognizing flushes and straights. I operate in 2D boolean array and it must be a boolean array nothing else. Could somebody help me in writing this method? I already have logically incorrect methods, but I don't know how to…
Jedyn
  • 1
  • 5
-2
votes
1 answer

Why does my simple poker program continue to draw the same cards?

I'm learning Java for my own and i have this problem: I created a poker program, and every time, both the AI and I draw nothing but the Ace of Spades (5 each) every round. How can I fix this? import java.io.IOException; import…
-2
votes
1 answer

How to create a string that has a numerical value?

card_value = 'J':11 print(card_value(x),'ack') print(card_value(y)-11) Basically I am making poker and don’t know how to deal with the J-Ace having their own numbers , while using the value to figure out types of hands.
-2
votes
1 answer

Classifying Poker Hands [ROYAL FLUSH IS FAILING]

I was following programming projects from the book C programming: A Modern Approach and I have incorporated 2 questions into my program but failed to achieve the 3rd that is to finding a royal flush hand. This is what I have done so far: /*…
Imtiaz Raqib
  • 315
  • 2
  • 20
-2
votes
1 answer

How to insert range of cards in database cell

How can I insert a range of cards like AA-QQ (AA, KK, QQ) in a cell of a database? I will use Java. I can't use 2 columns like in this answer because cards aren't numbers. EDIT: Maybe I found. I can do a join. Second table: ID CARD1 CARD2 …
huberton
  • 1
  • 4
-2
votes
1 answer

Implementing Betting for a Poker Game

I am currently writing a Texas Hold'Em style Poker game that I would like both humans and computers alike to be able to play. However, I am hung up on how to implement the betting rounds. Currently I have a PokerGame class which consists of the…
Dylan Siegler
  • 742
  • 8
  • 23
-2
votes
1 answer

canonizing hands with pokerstove does not work as expected

when using the pokerstove library (https://github.com/andrewprock/pokerstove) I ran into the following problem regarding the canonization of card suits. Here is a short code snippet that demonstrates my situation: #include #include…
Gabriel
  • 27
  • 5
-2
votes
1 answer

Poker Hand Evaluator Array of Structures

For a task I have been asked the following: Write a program that evaluates a single poker hand. Display the hand and print out what type it is. The ranks of hands are listed below from highest ranking to lowest ranking. Use a structure for the…
M. Rossitt
  • 23
  • 2
-2
votes
2 answers

Why is my call to the shuffle method not working?

I am making a blackjack game that requires the deck to be shuffled at the beginning of each iteration. The two classes of importance here are Deck and Game. In Deck, I created an ArrayList called deck to hold the 52 cards. I also created a method…
Joe Smith
  • 9
  • 1
-2
votes
1 answer

Poker Program in c Programming

I've put together a program that deals out a hand poker perfectly. Now I want the program to realize when the hand that is dealt is straight, flush, pair, 3 of a kind, and 4 of kind. The program runs but never prints the right condition when needed…
Cidricc
  • 115
  • 1
  • 3
-2
votes
3 answers

Three of a kind poker hand in java

So I am working on a poker game and have completed my straight and pair hands but have no idea where to start on my 3 of a kind. Any help would be apprciated here is my poker hand package. If I can get the three of a kind hand done I can finally…
Robert Jimen
  • 1
  • 1
  • 1
-2
votes
1 answer

Poker game: Swap method in C++

I'm learning C++ and I'm trying to figure out a method that involves switching out a card in the list below. for example: ace of spades king of hearts four of clubs two of hearts two of clubs How would I go about exchanging 2, 3, and 5 each for…
-3
votes
1 answer

I need this boolean to give me the lowest card value and print the first lowest card. When i use this method, it gives me the last card value

public String lowCard() { if (card1.getValue() < card2.getValue() && card1.getValue()
Jay Khan
  • 5
  • 3
-3
votes
2 answers

Efficient Algorithms Ordering "5 Out of 7" Card Poker (non-straight / non-flush) Hands | Divide & Conquer

Consider sorted lists of length 7 where each entry x is a number 2 <= x <= 14 and the duplicate count of any entry can't exceed 4. The assumption here is that a high-performance algorithm has already determined that we have a non-straight /…
CopyPasteIt
  • 532
  • 1
  • 8
  • 22
-3
votes
1 answer

How to get to a specific ArrayList posicition?

I'm on a university project in java. And I've got a problem. I'm doing a poker game simulation, and i have an arraylist called mano that has atributes "figura" and "palo" on every position. And another array Figura[] that has 5 figures. I want to…
1 2 3
30
31