FAQ Database Discussion Community


MYSQL/PHP: Comparing large sets of 2 specific rows in one table (POKER-calculator)

php,mysql,sql,calculator,poker
I am writing an online poker calculator just for fun :) I tried the pure php calculation approach, to compare two hands it calculates the outcome for every possible deck (C(5,48) = 1712304 decks) That takes around 12 seconds on my sucky one.com server :D What is ofcourse far too...

In server-client poker game, what is the best way to notify user about user's turn when app is in background

ios,sockets,poker
I am developing server-client model poker game, In which all game logic handling by server. I have a situation, when user tap home button in the middle of the game suppose 4 players playing a poker game. and the iPhone user tap home button, So app goes to background due...

Check high card and pairs for poker hand [closed]

c++,poker
I'm simply trying to check if the card is high, so the hand can be evaluated. Also, similar for checking pairs, straight, etc. But right now, these are recursive, so I'm not sure how to check the rank. Thanks for help!! functions.cpp int Hand::find_high_rank() const { int high_rank = 0;...

poker dice in java - not giving scores properly

java,dice,poker
I want to create a poker dice game in java, and when the player rolls the dice, I want the program to tell the results and the current score. However, something is wrong. It isn't giving me properly the score. For example, I changed the the Math Random algorithm to...

Checking for straight combination in poker

actionscript-3,flash-cs6,poker
I want to check for a straight combination in a poker game. So, I have this array: var tempArr:Array = new Array; I have this for sorting the array: for (i = 0; i < 7; i++) { tempArr[i] = pValue[i]; } tempArr.sort( Array.NUMERIC ); pValue is the value of...

Pseudocode for progressing a poker game

algorithm,pseudocode,poker
I'm creating a single function called progress() that is called after a player acts. I think there are only 3 possible ways to end a poker game: Game ends normally, there are 2 or more players until last round ends, do the "showdown" phase, and determine winners Game ends abruptly,...

Java Poker Game

java,list,java.util.scanner,poker
I am creating a java poker game so far I've got my program selecting random cards for the player, dealer and on the board (river). I now want my player to be able to input a value as a bet, I've though of using "Scanner bet = new Scanner(System.in);" but...

How to generate data idiomatically in f# inline in code

f#,functional-programming,immutability,poker
Lets say i am attempting to implement some sort of poker program in f#. Firstly is this the correct use of the type system, massive newbie here. type Suit = | Hearts | Diamonds | Spades | Clubs type Card = { Suit:Suit Rank:int } type Hand = { Cards:List<Card>...