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

java blackjack pair hand

So basically I'm trying to test to see if my hand of 5 cards has a pair in it (two cards have the same value (1-9)) and I'm getting an unknown error and this is my code Error: java.lang.AssertionError at…
masonft
  • 9
  • 5
-3
votes
1 answer

Dealing cards in java with an arraylist

Essentially what the method specifications entail is thus: remove the specified number of cards from the top of the deck and return them as an array. For example, if the parameter is 4, then the first four cards in the deck will be returned as an…
yarcenahs
  • 17
  • 7
-3
votes
1 answer

Client server java holdem game

Hi I'm making a simple poker texas holdem with client-server functionality. My problem is that I'm sending whole list of players to client (with info like bet amount, who has dealer button, what cards they have etc.). In game I print only cards…
Shadov
  • 5,421
  • 2
  • 19
  • 38
-3
votes
1 answer

How to create a String to convert numbers into words

I'm having trouble creating a String that will allow my numbers in a 5 Hand Poker Assignment turn into words. The numbers are from 1 to 52, represent each card in the deck. Ace of Spades in 1, 2 of Spades is 2... 14 is Ace of Clubs... 27 is Ace of…
-3
votes
2 answers

How to identy a Poker hand in c++

I have an assignment in which I need to identify a hand of Texas Hold Em Here is the assignment: http://www.scribd.com/doc/142850594/proj1 And here is my code: http://pastebin.com/Ts387iDw What I don't quite understand is how to get the program to…
PhDre
  • 65
  • 1
  • 2
  • 8
-4
votes
1 answer

Implemeting rendering and game logic -Poker

I am building a two-player(CPU-User) Poker Application with C++ and OpenGL. Currently the application just renders the graphics, keeps track of which button is pressed, value entered in textbox something like below. while(true){ button.draw(); …
-4
votes
1 answer

Formula to squash big numbers but keep smaller numbers in range 1 to 100

I show a chip as a div in the DOM. If I have 1 chip, I have 1 div, 2 chips, 2 div, 3 chips, 3 div, 4 chips, 3 div. As this can get high numbers quickly with many chips with different colors for 9 players each, I want a function to limit this number…
eguneys
  • 6,028
  • 7
  • 31
  • 63
-4
votes
1 answer

assign values to Rank in a poker game

How do you assign values to Rank in a poker game. I have the name Ranks of the cards and they are stored in a Collection method, but I cant figure out how to pull out the values and assign them a digit number value. private Collection cards; // so…
Paul
  • 1
  • 2
-5
votes
2 answers

I am having difficulty with my deal method

In my PokerDeck class I cannot get my deal method to run without producing duplicates. Can anyone tell me what I am doing incorrectly? import java.util.*; public class PokerDeck { public static final int NUMBER_OF_CARDS =…
-5
votes
1 answer

Teaching the computer to play texas Hold'em poker

I'm a beginner in Java and programming but I'm already creating a Texas Hold'em Poker game as a "practice and learn" project. I know the rules of the game, but I'm not sure how to include bots or computer player that can decide when to go in and…
Nooblhu
  • 552
  • 15
  • 33
-5
votes
1 answer

Poker project using JFrames

I have a Java Poker Project. I programmed two JFrames for the game and when you run the project, displays the JFrames together instead of the first and when it's done the second. Any ideas?
-6
votes
2 answers

Java - determining is Poker Hand has a Pair

I'm trying to evaluate a hand to see if they have a pair and I feel like this is right but i keep getting errors. Any idea on what im doing wrong? public boolean isPair() { String[] values = new String[5]; int counter = 0; //Put…
Winticles
  • 1
  • 4
-6
votes
1 answer

real time Texas Holdem

I'm designing a multiplayer poker site and require a way to display changes that occur during game play on all users screens that are active at the table including Ai decisions? I'm coding using the MVC Structure, and currently making use of C#,…
-11
votes
1 answer

Creating an array to hold a poker hand in C?

I have an assignment due in my computer science class (I posted this question a couple weeks ago but the way it was explained doesn't fit the program I'm supposed to do). I already have a program that shuffles and deals a deck right here. #include…
1 2 3
30
31