Coder Social home page Coder Social logo

cui-blackjack's Introduction

CodeFactor

👉 Click here to play 👈

CUI-Blackjack

A simplified command line interface Blackjack cards game.

Game Rules

  • There are two contestants, player & dealer.
  • The player goes first.
  • A player can repeatedly “hit” or “stand”.
  • If the player “stands”, their turn is over, and their score is calculated based on the cards they have been dealt.
  • If the player “hits”, they get another card and the value of that card is added to their total score.
  • All the numbered cards have the value same as their number.
  • Jack, Queen & King have value 10 each.
  • An ace normally counts as a 1 or an 11 (based on player's choice unless his/her total score is greater than 40).
  • If the player goes over a score of 51, they bust and lose immediately.
  • The dealer goes after the player.
  • The dealer repeatedly draws cards until they reach a score of 46 or more, at which point they stand.
  • If the dealer goes over a score of 51, they bust and the player wins immediately.
  • Otherwise, if the player has a higher score than the dealer, the player wins, vice versa the player loses.
  • If the player and dealer have the same score (and the player has not gone bust), the result is a tie and neither wins.

cui-blackjack's People

Contributors

bose-aritra2003 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.