Skip to content

phoniks/BlackJack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Extend the functionality of the BlackJack game created by Yaseen & Harman Include betting and more complex casino rules of blackjack.

Context

Extending the functionality of an existing repo will give us the opportunity to expand our horizons. We will have to integrate with existing code base, and make new features which are compatible.

Specifications

Existing features

Blackjack:

  • Dealer and Player characters Dealer Logic:
  • Dealer gives out cards in specific order
    • Dealer gives out:
      • one card face up to player
      • one card face up to Dealer
      • one card face up to player
      • one card face up to Dealer
      • shuffle the deck
  • Dealer plays, hitting while 16 or under (17 or more, dealer stays)
    • If dealer hits and busts, player wins

Player Logic:

  • if player gets Blackjack right at the start (Natural), player wins
  • Repeat hit or stay until player chooses to stay:
    • Player chooses to hit or stay
  • if player goes over 21, player busts

Backend Game Logic:

  • Compare player total to dealer total, highest wins

  • If player wins, players get their bet back, doubled

  • Repeat until player chooses to stay:

    • Player chooses to hit or stay
  • If hits and bust (go over 21), automatically loses

New Features

  • Betting
  • Place a bet at the beginning of the hand.
  • Handle bets for additional circumstances (double down, split, etc.)
  • Multiple players
    • Hot Seat Multiplayer
    • AI Players
  • New Game Rules
    • Double Down
    • Split/Resplit
    • Insurance
  • The artifact produced is properly licensed, preferably with the MIT license.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

About

Text based blackjack game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%