Skip to content

CharlesAta/Blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♠️ Blackjack

Welcome everyone to Blackjack!

Blackjack is the casino based game where players compete against the house, rather than each other. The objective of the game is to get a hand total of closer to 21 than the dealer without going over 21.

Formerly "Black Jack" and "Vingt-Un", Blackjack is the most widely played casino banking game in the world - what better game to base a project on?

A play at this version of the game throws you into a global setting, wherein you have various attractions to marvel at from around the world, with all the glitz and glamour of being at a casino.

Enjoy some smooth jazz as you place your bets and aim to win big against the house!

📷 Screenshots

Video Demo:

Project Demo

Alt text

Alt text

Alt text

Alt text

♣️ Technologies Used

  • HTML
  • CSS
  • JavaScript

♦️ Getting Started

The Rules are Simple


  • The goal of the game is to get a cummulative sum of 21 in your hand.
  • Avoid breaking 21 or it's a loss!
  • The dealer is out to beat you, and so their goal is to have a number higher than yours while still remaining 21 or under.
  • Face cards (ie. Jack, Queen, King), are worth 10.
  • An Ace is worth 11 and/or 1, depending on the total sum in the player's hand.
  • Both the player and the dealer start with two cards. One of the dealer's cards are hidden.
  • Once the player has compeleted their move set, the dealer will decide whether to draw or stay and then flip their card(s).
  • If the player breaks 21, the dealer wins.
  • If the player's initial two cards equate to 21, it's blackjack and the bet earnings are doubled.

Betting Rules


  • Players start with an initial $1000 in their wallet.
  • All bets are the be place before or at the end of rounds. The place bets sign will be illuminated when betting is available.
  • A bet cannot exceed the amount of money in the wallet.
  • A double bet can be placed when the amount of money in the wallet is an adequate amount, and an initial bet has been placed.
  • All bets are locked in until the end of the round.

How to Play


  • Bets can be placed at the start/end of rounds using the $100, $500, $1000 chips in the betting area.
  • If an attempt to go over the amount in the wallet, the respective amount will be disabled to add to the bet.
  • If a bet is mistakenly made, all bets can be undone by using the "CLEAR" button. This will clear the current bet.
  • The "HIT" and "STAND" buttons are disabled between rounds.
  • To start a round, press "PLAY".
  • If no bets are made, rounds may be reset, otherwise, the bet is locked in until the end of the round.
  • Once both the player and the dealer have two cards, the player will have the option to double their bet by using the "DOUBLE" button, if doubling the be is valid (ie. funds are available and a bet has been made).
  • The player has the option to "HIT" or "STAND".
  • By pressing the "STAND" button, the winner submits their current hand in competition with the dealer. The dealer has the option to draw more cards.
  • By pressing the "HIT" button, the player draws an additional card.
  • Cards can be drawn until a player clicks the "STAND" button, or the player's hand equates to 21 and over.
  • Once the player has stood, the dealer has drawn an flipped their cards - the winner is shown.
  • Once a winner is shown, bets are available once again, and the next round will begin once the "PLAY AGAIN?" button has been pressed.

Additional Features


  • The scoreboard can be reset by pressing the button to the right of "TIES".
  • The background music can be muted by pressing the speaker icon to the top left of the neon message sign (inline with the scoreboard).

📝 Future Enhancements

  • Ability to play on various screen sizes
  • Option to split hand
  • Ability to create an account
  • Ability to add money to wallet
  • Leaderboards

🙏 Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors