Git Product home page Git Product logo

blackjack-game-in-js's Introduction

The Codecademy assigment: Build Blackjack Game in JavaScript. You can check my progress here

My first game ever made. It's simple JavaScript game to play in your browser with some stylish graphics now :)).

Challenge can be found here

Game highlights

  • Ace as a special card is avalueted as "1" or "11" depending on player cards at Hand. When a player draws an Ace and the score exceeds 21, Ace value changes to 1.
  • The Card Deck is generated and then shuffled twice before the start of the game.
  • Player can't get any more cards after he reaches "21" or gets passed it.
  • There is phase One with Two cards per player. Than player decides what to do, hit or stand.
  • Only one card of Dealer is visible in phase One. Then in the end, his Hand is revealed.

Difference vs original rules

  • AI of the dealer is very simple. He is drawing next card if his score is below "17". Even if a player has already lost.

All this works thanks to materials I used:

Blacjack Game overview:

Blackjack, also known as twenty-one, is a comparing card game between usually several players and a dealer, where each player in turn competes against the dealer, but players do not play against each other. It is played with one or more decks of 52 cards, and is the most widely played casino banking game in the world.[1]. The objective of the game is to beat the dealer in one of the following ways:

  1. Get 21 points on the player's first two cards (called a "blackjack" or "natural"), without a dealer blackjack;
  2. Reach a final score higher than the dealer without exceeding 21; or
  3. Let the dealer draw additional cards until their hand exceeds 21.

More info in Wikipedia

License

* See license.txt for usage details.

blackjack-game-in-js's People

Contributors

kusnierewicz avatar

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.