Name:

                 Javascript Poker 1.0

Author:

                  Oprea Cristian

License:

                  Commercial

Contact:

                  TeachMeSoft@yahoo.com

                  http://www.simplexsolver.com

Requirements:

                  A web browser with Javascript enabled. It was tested and works with Firefox, Internet Explorer, Safari, Opera and Google Chrome.

Running:

                  Open the file Javascript-Poker.html in a web browser and press DEAL button ! Enjoy it !

Description:

                  Javascript Poker 1.0 is a video poker game based on Jacks or Better Poker rules.

Features:

Rules & Scoring

After you click DEAL button, Javascript Poker 1.0 starts out with a newly shuffled deck. Initially you are dealt 5 cards face up. You get to keep the cards you like and discard the cards you don't like. To keep the cards just click on the HELD button under the card. Then click DEAL button and new cards will replace the discarded ones. At this point, your hand will be evaluated and you will be credited accordingly. We will discuss the credits as the hands are discussed.

First, I will discuss the rank of the hands and then I will talk about how the payouts and credits work.

Card Ranks for Javascript Poker 1.0

Single card rank from highest to lowest

ROYAL FLUSH (250:1)
A straight flush, with the Ace high.
ex: 10 of hearts, jack of hearts, queen of hearts, king of hearts, ace of hearts.

STRAIGHT FLUSH (50:1)
A straight flush, with all 5 cards that are consecutive and are in the same suit
ex: 4 of hearts, 5 of hearts, 6 of hearts, 7 of hearts, 8 of hearts.

FOUR OF A KIND (25:1)
4 cards of the same value
ex: 9 of spades, 9 of hearts, 9 of clubs, 9 of diamonds

FULL HOUSE (9:1)
A 3 of a kind and a pair in the same hand
ex: 6 of hearts, 6 of diamonds, 6 of clubs, 3 of hearts, 3 of clubs

FLUSH (6:1)
All 5 cards in your hand are the same suit.
ex: 3 of spades, 5 of spades, 9 of spades, king of spades, 10 of spades

STRAIGHT (4:1)
All 5 cards are consecutive. This suit does not matter.
ex: 6 of spades, 7 of hearts, 8 of diamonds, 9 of clubs, 10 spades

THREE OF A KIND (3:1)
3 cards of the same value.
ex: 5 of clubs, 5 of hearts, 5 of diamonds

TWO PAIR (2:1)
2 pairs of cards of the same value.
ex: 3 of hearts, 3 of clubs, 10 of diamonds, 10 of spades

JACKS OR BETTER (1:1)
1 pairs of cards of with a ranking of Jack, Queen, King or Ace the same value.
ex: Jack of hearts, Jack of clubs

Javascript Poker 1.0 summary
ROYAL FLUSH
STRAIGHT FLUSH
FOUR OF A KIND
FULL HOUSE
FLUSH
STRAIGHT
THREE OF A KIND
TWO PAIR
JACKS OR BETTER
250:1
50:1
25:1
9:1
6:1
4:1
3:1
2:1
1:1

Betting and Payouts

Here is how the betting works. Lets say you start with 1000 credits. Then you bet 5 credits on the hand. You spend 5 credits to bet so before the cards are even dealt you end up with 995 credits. Then suppose you get 3 of a kind. You win 3:1.

For every one credit you bet you get 3 credits (3:1). You bet 5 credits and you end up with 5 x 3 = 15 credits. So add the 15 credits to your 995 credits and you end up with 1010 credits.

Good luck !