Code Monkey home page Code Monkey logo

blackjack's Introduction

Blackjack
=========

A simple blackjack game.

Requirements
------------

* Players interact with the game through the console
* A normal 52 card deck of cards is used
* Picture cards are worth 10 points
* Aces are worth either 11 points or 1 point
* Players with a score over 21 go bust
* There is a player and a dealer
* The player may play as many rounds as they like
* before each round the deck is shuffled afresh

In a round:

* player and dealer draw hands of 2 cards, and these are diplayed
* player may hit until they go bust, or stand
* each hit draws 1 more card
* after the player has stood, dealer plays
* Dealer always hits with a score up to 16, and stands on 17 or higher
* The Dealer wins if they have a score greater or equal than the
  player, otherwise the player wins
* The result is reported to the player

blackjack's People

Contributors

knaveofdiamonds avatar

Watchers

Matthew Pateman avatar James Cloos avatar

Forkers

stephenabbott

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.