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

Java function for comparing Arrays position for position?

I recently started learning Java for fun but got stuck at the following problem: I have 2 arrays int[] that holds a representation of a poker hand. Position 0 in the array tells if it is a straight flush and the number in there tells the value of…
hybris
  • 21
  • 5
0
votes
2 answers

Ranking Poker Hand

I'm building a function PokerHand() which should take a 5 card hand as a string and score them according to Texas Holdem Rules. I've written the code so that it's first sorted according to rank. So that the hand const handOne = ('AC 4S 5S 8C AH')…
Valerie
  • 111
  • 1
  • 8
0
votes
4 answers

How do I map each value from one list to another? (Haskell)

This is the code I have so far: data Suit = Diamond | Club | Heart | Spade deriving (Read, Enum, Eq, Bounded) data Rank = Two | Three | Four | Five | Six | Seven | Eight | Nine | Ten | Jack | Queen | King | Ace deriving (Read, Enum,…
0
votes
4 answers

using Dictionary trying to search for a value and key (poker game)

I am trying to create a basic poker game using c#. So far I have got the cards randomly dealt using these three lines: Suit suit = (Suit)randomCardSelector.Next(4); Value value = (Value)randomCardSelector.Next(13); Card abc = new Card(suit,…
0
votes
1 answer

Convert an integer value to a string with an enum as basis

I have been learning C++ for a few weeks and I am now trying to program a little thing by myself and practice what I learned at the same time. So my program is a poker hand distributor. I started by creating a simple "card" class which contains two…
0
votes
2 answers

Find and remove pair from Int array

I am coding a poker hand evaluator, and I'm struggling with how unintuitive my naive solution is (obviously!). One of my methods is to evaluate whether the given hand: int[] handValues = {5,7,8,8,11}; Is of hand-type 'one pair' - that is to say,…
j panton
  • 232
  • 4
  • 16
0
votes
2 answers

Javascript Array Test Behaves False When Is True

I am trying to make a multiplayer poker game in Node.js, and I've been having a lot of issues lately. This is a major one. This code is supposed to identify a Straight hand from an array. However, my code apparently isn't universal. I made 2 arrays…
sumguy37
  • 43
  • 7
0
votes
1 answer

Creating a text arrow in Excel that moves down as questions are answered

As shown in the 'Question' column, there is a --> I need a formula that I can repeat to all cells in the column that will make a --> appear where the previous question has been answered ('N' cell of previous row is not blank) - This would be…
user9829408
0
votes
3 answers

How to count pairs in Poker using Java and two nested for loops

I'm very new to programming and I have been trying out an exercise. Basically I need to count the number of pairs of cards that I find in an unsorted String of 5 cards. The way I interpreted it was probably wrong, For example, one of the strings…
0
votes
1 answer

Evaluate different poker strategies

not sure if SO is the right place to ask this question, but I am gonna try anyway. I am playing with neural networks and poker and I am facing a problem that is how to evaluate different players. Poker variant I am talking about is No-limit holdem…
user3048782
  • 61
  • 1
  • 1
  • 6
0
votes
1 answer

Generate a list of possible subset from a set in ocaml

I'm working on a computing probabilities of winning in a poker (texas hold'em) game. And for that I have to make a function that returns every combination of 5 cards possible from the two cards of the hand and the 3 or 4 or 5 cards on the table. I…
0
votes
1 answer

Editing an array of strings in c

I'm writing code for a poker game and in my main function I have: const char *suits[4] = { "Spades", "Clubs", "Hearts", "Diamonds" }; const char *faces[13] = { "Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack",…
Leshawn Rice
  • 31
  • 1
  • 1
  • 3
0
votes
1 answer

Viable use of genetic algorithms to train neural nets in a poker bot?

I am designing a bot to play Texas Hold'Em Poker on tables of up to ten players, and the design includes a few feed forward neural networks (FFNN). These neural nets each have 8 to 12 inputs, 2 to 6 outputs, and 1 or 2 hidden layers, so there are a…
0
votes
1 answer

addEventListeter to an EventListener? (change the button)

I'm kinda new to js language, and I have this interesting project. Have you ever played Poker? So, when the user pressed the button, he sees three cards on the table. Then he presses the same 'check' button and he should see the fourth card, and…
vljs
  • 978
  • 7
  • 15
0
votes
1 answer

Deciphering RayW Poker Hand Evaluator

I am attempting to decipher this code: https://github.com/tangentforks/TwoPlusTwoHandEvaluator/blob/master/generate_table.cpp The code is used to generate a massive lookup table that is then used to look up hand ranks of 7 card hands. I am having…
cubesnyc
  • 1,385
  • 2
  • 15
  • 32