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

segfault set_union with object : std::set

Hello all :) I hope someone will have a solution or I will finally find ^^ Context I am a beginner in c++ so, object, template and iterator maybe I understand a little bit and make some changes but I am not able to manipulate it when it is…
user2964288
  • 83
  • 1
  • 11
0
votes
1 answer

Poker EV calculator: Computing Hand Value?

I am attempting to write a program that helps a user make the correct EV play for each hand. However at the minute I am using card value (i.e. total of two cards) to base my decisions. For example 9=9, 10=10, j=11, q=12.... I would like the use to…
user2971033
0
votes
1 answer

C# Poker Cards Combinations

I want to count all combinations of poker cards that a player can get in one hand and display all those combinations. I don't care about how many pairs, full houses etc. are there. I just want to count all possible hands that a player can get. So,…
Mahir Duraković
  • 135
  • 1
  • 23
0
votes
1 answer

Runtime error while generating object's values in the constructor of an object that aggregates them

I'm writing a C++ program for an introductory course that simulates a poker game. I created a card object with with integers to store a value for face and suit. I then created a DeckOfCards object that has a C++11 array of 52 card objects. I am…
0
votes
1 answer

Determine a Straight in 5 card Poker with VB

Hi I've written all kinds of programs for gambling like roulette blackjack and now I'm doing Poker I'm doing 5 card draw and trying to determine if my hand is a straight before the draw I'm a simple programmer and I've had no schooling. Right now…
0
votes
1 answer

Conditional Formatting - Turning AhKs into A♥K♠

Basically I have a column showing poker hands data in the following form: AsKh TcTd QsQh 5d7d I want to apply a conditional formatting formulat to the column so that diamonds 'd' gets replaced with a blue diamond symbold and their preceding card…
0
votes
3 answers

Regex pattern for getting part of a string

Hi I have strings like: ** Dealing Flop ** [ As, 4s, 8h ] ** Dealing Turn ** [ 4h ] ** Dealing River ** [ 3s ] I need know is it flop turn or river and what cards has been dealt. for now I have new Regex(@"^\*\* Dealing…
0
votes
2 answers

Conditioning a String

Quick question. I'm wondering how I can make this so that it will only run when a number from 2-23 is entered by the user. BufferedReader in; int x; String playerx; //user input for number of players in…
0
votes
2 answers

Ask if user wants to play again

I wrote a poker program that deals out cards to an inputted number of players and then deals the house cards. I'm wondering how to ask at the end if the player wants to play again and put the program into a loop. So that if they enter "Yes" then the…
0
votes
1 answer

Make m not be able to equal 1?

I wrote a code for a simple card dealing program where you can input the number of players that are playing and it will output two cards for each of them plus 5 (the river, flop etc.) I'm wondering how I can make the m not be able to equal 1, so…
0
votes
5 answers

Explain the code

Here is the code: basically, this code prints out 52 cards with the suit + rank. package javaapplication52; public class JavaApplication52 { public static void deck() { String[] suit = { "Clubs", "Diamonds", "Hearts", "Spades" }; …
pur3extrme
  • 75
  • 1
  • 2
  • 10
0
votes
2 answers

I'm making a quick and dirty poker game, and need to determine which hand wins

I'm making a quick and dirty poker game in python, and am having trouble determining which player wins the hand. I have functions that deal cards, determine the "value" of the hand in the way that 0-8 correspond to high card - straight flush, and…
KevinShaffer
  • 760
  • 5
  • 14
  • 26
0
votes
1 answer

(C++) Counting duplicates in an array, and then moving that counted number to a corresponding position in a separate array

I've just begun learning to code c++, so please bear with me, my knowledge is very very limited. This is my first program written from scratch. I'm writing a program that looks at a hand of five cards, and then tells the user it's type, such as…
PhDre
  • 65
  • 1
  • 2
  • 8
0
votes
1 answer

How do I connect my player's changing hands and gameboard to an existing poker hand evaluator?

Although I'm not making a poker game, the objective of the game is the player with the highest poker hand wins. There are four players in my game. I was able to implement a gameboard and a function that would allow the player (once they make a move)…
Kaylie
  • 13
  • 5
0
votes
1 answer

A simple way to calculate outs on a poker game in java

I need to calculate the odds on a poker hand by Java. This is for a school project I don't have much time and I can't find any good and simple method or algorithm.
HugoMen'z
  • 31
  • 6