Poker Hand Evaluator

Completed

Description

I need a function that evaluate a hand poker. The deck contains all 54 cards including the two jokers (red & black).

The function have the input parameter a list with 5 cards.

A card object is like:

id -> id of the deck array (0..53)

suit -> 0..3 (hearts, diamonds, clubs, spades)

number -> 0 = joker, 1=ace, 2=deuce ... 11=Jack, 12=queen, 13=king

The poker evaluator function must evaluate the hand and return what type of hand is:

- 5 OF A KIND

- ROYAL FLUSH

- STRAIGHT FLUSH

- 4 OF A KIND

- FULL HOUSE

- FLUSH

- STRAIGHT

- 3 OF A KIND

- TWO PAIRS

and mark the selected cards.

Skills: Javascript, PHP, Python

See more: poker evaluator joker, joker poker hand evaluator, poker hand evaluator joker, poker hand evaluator, red red black, red black with, black ace, royal, king of the, HEARTS, Hand, diamonds, deck of cards, deck cards, ACE, ace of, input cards, pairs deck cards, red black, joker, royal flush, javascript object array, cards deck pairs, cards ace, pairs deck

Project ID: #1012611

Awarded to:

pbq

interested...

$70 USD in 2 days
(3 Reviews)
2.4