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

Initialized object array still getting null pointer exception?

I'm completely new to programming and am trying to create a Poker program in Java. This bit of code is in the Player class, where I'm trying to construct an empty hand. No matter how I fill the array (with a loop, like this, etc.), Eclipse tells me…
0
votes
2 answers

Trying to sort values in C using a bubble sort method for poker game

so I have created a (mostly working) poker hand score meter, the only problem I am currently having is that I need to sort the values of the card into order to correctly identify a straight or similar. Currently my program returns foreign keys where…
0
votes
6 answers

Generating 5 playing cards

I've been trying to make a poker game bot for IRC, but I can't seem to get my head around dealing the cards. I know this algorithm is quite inefficient, but it's the best I could come up with using my current Python skills. Any improvements are…
maciozo
  • 45
  • 1
  • 8
0
votes
4 answers

Creating an array of arrays in Java

Say I have a Player class such as: public class Player { String name; int chips; int betVal; } Is the following code correct for creating the array of the players? public static void main(String[] args) { int playerCount; int…
Rhiokai
  • 2,147
  • 5
  • 16
  • 18
0
votes
2 answers

How can I generate all unique card pairs from a list of cards?

I am implementing a hand strength evaluator, which is to evaluate all possible pairs from the remaining 47 cards, after dealing one hand and the flop. I have implemented the evaluator, but I'm missing all the possible combinations for which to…
Skogen
  • 721
  • 1
  • 11
  • 30
0
votes
1 answer

Now.js + Express -> Disconnect issue

this is a question to all the Node Gurus out there: I'm new using NowJs with Express and i'm building a poker site. The main problem that I have is : When a User creates a game, opens a new window and close it. When closing this second window the…
0
votes
1 answer

Java Image Handling

I am trying to do a poker hand simulator. I am using Netbeans, and by the means of its GUI editor I created a JFrame in which I added the JPG of the poker table. After doing this, is it possible to dynamically add JPGs according to the hand that the…
0
votes
1 answer

iphone sdk - poker odds calculation

i'm playing with xcode to create a poker hand analizer. I've used the specialK hand evaluator. after included the evaluator in my project i've detached two threads ( with 125k cycles each ) to attempt to run monte carlo simulation in order to check…
Tiziano
  • 316
  • 1
  • 4
  • 17
-1
votes
1 answer

What is the right way to develop a HTML5 poker application with .NET and Asp.NET MVC backend?

i would like to develop a HTML5 poker game with .net and Asp.Net MVC backend. What i would like to learn is that there are a lot of sections in the application that needs to be refreshed all the time. Here is a sample scenario : Let's assume…
ward87
  • 13
  • 2
-1
votes
2 answers

Python appears to be passing then wrong object into a function

Here is my code I am trying to run # -*- coding: utf-8 -*- import pydealer from pokerlib import HandParser from pokerlib.enums import Value, Suit class Player: def __init__(self, name: str, chips=500): self.name = name …
rj-frosty
  • 1
  • 5
-1
votes
1 answer

Suggestion to Build a multiplayer Texas Holdem Poker game using NodeJS, Flutter

I have been building basic and complex mobile apps in Android and Flutter also have knowledge of NodeJS. I have already built a basic NodeJs multiplayer server for Texas Holdem Poker. Mulitple rooms and table logic are still remaining. I want to…
Kuntec
  • 76
  • 2
-1
votes
2 answers

C++ Find Frequency of a String in a Vector of Strings

I am currently working on a little mini program that will determine if a vector of 5 strings contains a full house. A full house in my program has a pair of cards and 3 of a kind. For example: ["A", "A", "A", "K", "K"] would be a full house, while…
-1
votes
2 answers

Poker Hand Analysing

I have run into a bit of trouble on coding a hand analyser for my poker game. As of now i can analyse each players hand and get the desired result (TwoPair,OnePair,HighCard) But what i want to do now is get the player with the highest ranking cards…
Teckniel
  • 149
  • 1
  • 1
  • 11
-1
votes
1 answer

How to rank poker card alphabets in the descending order of (A-K-Q-J-T)?

I am trying to rank an array of sorted poker cards, but am unable to find a way to make sure the order of rank alphabets attached to the suits to go as (A-K-Q-J-T), for example my output shows HT (heart ten) to be bigger than HJ (heart joker) when…
WickedLook
  • 15
  • 4
-1
votes
2 answers

Trying to print probability for two pairs

I am trying to make a simple poker game where I would simulate each hand shown in the options as no pair, one pair, two pair, etc. I am trying to print out the probability by using count to increment each time it deals a new hand def twopair(): …
Mac
  • 1