Skip to content

vrkljam/Blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack


screenshot of the game

Link to the game: Click Here

Code Styles

  • HTML
  • CSS
  • JS

Description of game

This is a Blakjack online card game. It will allow a player to play against a dealer. The game ends with the first to get to 10 wins. This game uses one deck of cards for play.

Rules

The player tries to beat the dealer by getting 21 or getting a hand that is higher than the dealer without going over 21. If there is a tie (push) then no one wins that hand. BlackjacK (an ace with a face card or 10) beats a multi card 21.

Instructions

To start the game click the Deal button to get the initial set of cards.

The player then can choose to Hit or Hold. Should the player get an ace, they can change the value from One to Eleven or vise versa as they want using the buttons.

The player has to click the Hold button when they are satisfied with their hand. Next, it's the dealer's turn. The dealer can hit until they have a hand that is at minumum of 17.

The cards in each hand are compared to determine a winner of that hand and that is logged in the "Wins" box for the respective wnnner.

To deal a new hand, click on "New Hand" button and then the "Deal" button.

The winner is the first to get to 10 wins. A new game can be started by clicking on 'New Game'

MVP

  • Make a two player Blackjack game.
  • Able to view cards from both players.
  • Able to draw and hold as desired.
  • Able to see a total of the cards for each player and dealer.
  • Able to play multiple rounds.

Difficulties

  • Creating a table top from scratch and using the CSS to place items where I wanted.
  • Coding the rules for player hand totals.
  • Allowing the player to choose either a value of one or eleven when it received an Ace.
  • How to clear the board and start a new game after 10 wins.
  • Hiding one of the dealer's cards until after the player was done.

Future Additions

  • Multiplayer mode.
  • Tournament mode with a timer.
  • Betting with chips.
  • Dialog box to communicate between players and or dealer.

Releases

No releases published

Packages

No packages published