Code Monkey home page Code Monkey logo

black-jack-game's Introduction

Black-Jack-Game

AIM: Get closer to the value of 21 than the opponent does.

REQUIREMENTS: A deck of cards.

2 PLAYERS: Human player and Computer Dealer.

--> HIT: Recieve an other card. --> STAND: Stop recieving cards. --> BUST: Cross the value over 21.

  1. Initially, either of the players are given 2 cards from the shuffled pack of cards
  2. The 2 cards in Players hand are shown up. But, the dealer does show only one.
  3. If the player total cards value < 21, the player hits from the deck.
  4. After the player's turn, if the player has less than 21, then dealer hits until they either beat or busts.
  5. If the player wins, the bet amount is added to his total. Or else, gets deducted from his total.

THE GAME ENDS WHEN, i) The player busts. ii) The player wins. iii) The dealer busts. iv) The dealer wins. v) Tie between them.

DESIGN OF CODE: OOP and Functions in Python

black-jack-game's People

Contributors

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