GithubHelp home page GithubHelp logo

blackjack-cli's Introduction

Blackjack-cli

A single-player simplified Blackjack game running in terminal.

Written in C++

Build

Under the directory of source codes,

make all

With all dependencies installed, make should build an executable called "Blackjack"

Usage

In the same directory of executable,

./Blackjack

Follow the instruction printed and type the single letter corresponding to the specific option.

The main menu:

Welcome to simplified Blackjack in cli.
Options:
  s: Start the game
  q: Quit

This is the main menu of this game. After starting the game or finishing one round, player will be prompted with this menu.

Type "s" or "q" and press "Enter" for each option.

The game:

Welcome to a new game.
Now we deal first 4 cards
Player received card: 7 of spades (7)
Player received card: Jack of clubs (10)
Cards of Player: 7 of spades (7), Jack of clubs (10)
Cards of Dealer: 10 of diamonds (10) and a hidden card.

* Player's score: 17
* Dealer's face-up card: 10 of diamonds (10)

Card used: 4, Card remaining: 48

Waiting for player...
Options: Status(t), View Dealer's card(d), View Player's card(p), Hit(h), Stand(s)

This is how game looks like. Player has 5 different options for each step.

Rule (Simplified Blackjack)

The rule is same as the one of the famous Blackjack game except this game does not support betting, doubling, splitting considering it is only a single-player game.

blackjack-cli's People

Contributors

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