- When the page loads:
- Display the player account.
- Display a Bet input box.
- Display 5 card backs.
- Display a Deal button.
- The Deal button should be disabled until a bet value is entered.
- After the hand is over, the Bet input should be empty and the Deal button should be disbled.
- Set the player account to 1000.
- 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.
- 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.
- 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.
- Return to step 2.
Required Javascript Objects
Game Object Event Handlers
- 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
- 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)