Giter VIP home page Giter VIP logo

blackjack2's Introduction

Build Status

Blackjack

This Single-Page-App was created with JQuery. Just like what Blackjack should be, it's simple and fun. A project assigned by DigitalCrafts.

How to play

  1. Input the amount of money you want to start with.
  2. Set the bet amount.
  3. Enjoy the game!

Player options:

  • Hit: draw a card. You may draw more cards if not bust.
  • Double: draw a card, double your bet, end your turn.
  • Stand: do nothing, end your turn.
  • Surrender: drop your hand, give up half of your bet.

Nerd's thinking

Gains:

  • Simple to design
  • No requirement for other library support

Pains:

  • The logic behind the game was relatively complicated
  • Double values of Ace was the key but also a Bug's hotbed for the program
  • Too many functions and variables
  • Debugging was exhausting. For example, I never got blackjack during the coding so I had no idea if there would be any issue of it in real-time run

Languages:

  • HTML
  • CSS
  • JQuery

Published:

GitHub Page

blackjack2's People

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.