/VideoPoker

A Jacks Or Better poker game.

Primary LanguageJavaScript

Video Poker Instructions


User Interface

  1. When the page loads:
    • Display the player account.
    • Display a Bet input box.
    • Display 5 card backs.
    • Display a Deal button.
  2. The Deal button should be disabled until a bet value is entered.
  3. After the hand is over, the Bet input should be empty and the Deal button should be disbled.

Game Loop

  1. Set the player account to 1000.
  2. The player enters a bet and clicks the Deal button.
    • The players account is reduced by the bet amount.
    • The deck is shuffled.
    • 5 cards are dealt to the players hand and displayed on the screen.
  3. The player replaces unwanted cards.
    • Cards to keep are chosen by clicking each card.
    • The player clicks the Deal button.
    • Each card not marked is replaced by the next card from the deck.
  4. The hand is evaluated.
    • The hand is evaluated using the functions listed below.
    • The player account is credited by multiplying the bet by the payouts specified below.
  5. Return to step 2.

Required Javascript Objects

Card Object


Hand Object


Deck Object


PlayerObject


GameObject

Game Object Event Handlers


Hand Payouts

  • Royal Flush - 250:1
  • Straight Flush - 50:1
  • 4 of a Kind - 40:1
  • Full House - 10:1
  • Flush - 7:1
  • Straight - 5:1
  • 3 of a Kind - 3:1
  • 2 Pairs - 2:1
  • 1 Pair Jacks or Better - 1:1

Scoring

  • Card Object (5)
  • Hand Object (5)
  • Deck Object (5)
  • Player Object (5)
  • Game Object (5)
  • Game Loop Logic (10)
  • Bootstrap CSS (5)
  • Project in GitHub (5)
  • GitHub Pages Enabled (5)
  • Missed deadline (-10)

Total Possible (50)