Giter VIP home page Giter VIP logo

synic-dx / blackjack Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 615 KB

A Javascript Blackjack Game (With Sound Effects & More).

Home Page: https://synic-dx.github.io/blackJack/blackJack.html

License: GNU General Public License v2.0

HTML 25.64% JavaScript 46.39% CSS 27.98%
beginner-friendly beginner-javascript blackjack blackjack-game blackjack-javascript card card-game card-game-engine card-game-generator card-generator javascript javascript-beginners-projects javascript-card-game javascript-game

blackjack's Introduction

blackJack

About

A card game made with Javascript. Users have an initial balance ($5000) and can choose bet amount via three buttons that auto-selects a card out of a deck of 52. After selecting the bet amount and starting the game, users can choose to Draw (Hit, draws another card) or Hold (Stand, doesn't draw any more card) or Double (draws another card and doubles bet). Whoever's card value is closest to 21 (but doesn't cross 21) wins the round and increases their balance.

Note

I have not added splice method to remove drawn cards from the deck to keep it simpler.

Game has one error to be fixed

Game accepts one userDraw even after dealer busts.

Screenshots

image

image

image

blackjack's People

Contributors

synic-dx avatar

Stargazers

 avatar

Watchers

 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.