Code Monkey home page Code Monkey logo

blackjack's Introduction

BLACKJACK

For Project 1 of my GA Bootcamp. I picked Blackjack as my game. Given the timeline we were assigned, I decided to do a game I am most familiar with and I know I could handle. Before choosing the project, I knew there were still a lot of things I needed to learn and understand, and thinking back to it, this was the perfect difficulty for my level.

Blackjack as simple as it is when played, has a lot of variables that can make developing tha game a challenge. The biggest is having the Aces hold 2 values that can be modified, during gameplay, to a value of either 1 or 11. This is what I found to be the biggest frustration when building my game.

initial screen deal button clicked stay button clicked

Technologies

  • HTML
  • CSS
  • JAVASCRIPT

Getting Started

  1. The goal of blackjack is to beat the dealer's hand without going over 21.
  2. Face cards are worth 10. Aces are worth 1 or 11, whichever makes a better hand.
  3. Each player starts with two cards, one of the dealer's cards is hidden until the end.
  4. To 'Hit' is to ask for another card. To 'Stand' is to hold your total and end your turn.
  5. If you go over 21 you bust, and the dealer wins regardless of the dealer's hand.
  6. If you are dealt 21 from the start (Ace & 10), you got a blackjack.
  7. Dealer will hit until his/her cards total 17 or higher.

  • To start the game, all you need to do is click Deal.
  • After 2 cards have been dealt, you can either click hit to deal more cards. Careful not to go over 21 or you bust.
  • Click the Stay button if you are happy with your cards and let the dealer make its moves. Good Luck!

Try it out here: LAUNCH GAME

Icebox

  1. Split can be done when you have two of the same card - the pair is split into two hands.
  2. You can only double/split on the first move, or first move of a hand created by a split.
  3. You cannot play on two aces after they are split.
  4. Highlight whose turn it is
  5. Score keeper on how many times Player beat Dealer
  6. Add media queries to make the site mobile
  7. Add ambient, shuffle, and deal card sounds

blackjack's People

Contributors

rockyliwanag 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.