Giter VIP home page Giter VIP logo

blackjack's Introduction

Oliver Walters' BlackJack

Y12 Term 4 Project

Getting Started

  • To run the game, enter into the console 'npm start'
  • If it doesn't work, you may have to enter 'npm init'
  • Go to https://localhost:3000

Rules

Basic Rules

  • There is a deck of 52 cards
  • Each player draws two cards to begin around and then bets a certain amount
  • The basic moves a player can make are Hitting (Draw a card) and Standing (Fold on move)

Winning the game and Scoring

  • When all the players have decided to 'stand' or have 21 or more on all hands, the round ends
  • Scoring 21 will mean that 150% of the bet is paid out, unless if it came from split aces
  • Aces can be 11 or 1. Jack, Queen and Kings are all 10. Number cards have their own values
  • The score is calculated by adding up the card values (If having ace = 11 exceeds 21, the ace will become 1)

Betting and Doubling Down

  • A minimum bet of 5 dollars is required
  • Using a double down costs money towards the bet, it will double the bet and then it will hit and stand the deck
  • When doubling down, the deck is hit immediately and then goes standing
  • Bets can be placed only when the initial two cards have been dealt

Splitting

  • The bets are placed on both split decks collectively (If both split decks win, the money is doubled. If both win 21, the money is tripled)
  • Splits can be done only when the card has two idetical number cards

Controls

  • Choose the opponent/dealer agressivenes in the option menu
  • Note that when going to the option menu, the opponent's difficulty will automatically increase
  • The Background Music and SFX volume buttons are at the bottom

Notes on Social and Ethical issues

Social and Ethical considerations

  • The jazz music being played in the background will not be set to autoplay as to keep to Google's policy and the dangers of starting the game in high volume

Bibliography (Assets)

blackjack's People

Contributors

olivex727 avatar

Watchers

James Cloos avatar Peter Howse avatar  avatar

blackjack's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.