Giter Site home page Giter Site logo

blackjack's Introduction

This game was the first project developed by Jeff Jones, while a student at General Assembly's Web Development Immersive program.

The game was designed using HTML, CSS, Javascript and JQuery. The process of development started with a basic CSS framework for testing game logic, and then using Javascript to create and shuffle a deck of cards to set up game play. From that point forward, one player logic was added, to tell the player what the total of their hand was, and whether or not they busted. This included the ability to increase bet by $25, and revisit the cashier to replenish their chip stack. Dealer logic was implemented next, with the dealer showing a single card initially. Once the player decided to stand, the dealer takes a hit card until they total between 17 and 21. At that point the game lets the user know if he or she has won or lost based on the value of the hands, with the bet result reflected below.

Once the hand is over, the user can increase their bet, and then use the Deal function to play another hand.

Unsolved problems: I'm still working on the soft Ace functionality, for when an ace should be equal to 1 rather than 11. I'd also like to remove the alert function, and add nicer looking cards to the game at some point. Additional stylistic updates to make the game board look more like a casino table are possible as well. The deck also needs to be reshuffled when there is no longer any cards in the array.

Likely some additional bugs in game logic that I'm missing from lack of playing.

blackjack

  1. As a user, I should be able to see my chip count after each hand.

  2. As a user I should be able to increase or decrease my bet amount.

  3. As a user, I should be able to know immediately whether I have won or lost.

  4. As a user, I should be able to know what my current hand's value is.

  5. As a user, I should be able to hit when I want to take another card.

  6. As a user, I should be able to stand when I do not want another card.

  7. As a user, the dealer should not be allowed to hit on 17 or higher.

  8. As a user, I should be able to reset my chip stack if I'm out of money.

blackjack's People

Contributors

jeffjones89 avatar

Watchers

James Cloos avatar

Forkers

jshawl

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.