Skip to content

carolinabento/blackJack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlackJack Card Game

This repository contains the code for the classic BlackJack card game.

Table Of Contents

Play BlackJack

To play this text-based BlackJack download the project's source code, open your terminal in project root directory and type:

./bin/playBlackJach.sh

Documentation

This BlackJack game contains a limited set of moves/actions:

  • place bet
  • hit
  • stand
  • double down
  • quit

You can play a input-based version, where you type the command correspoding to each possible move, or your can let a bot be the player.

This bot can have two different strategies:

  • Greedy Player - always hits until his hand is greater or equal to 15,
  • Cautious Player - only hits if he has 60% chance of not busting

Here is a screenshot of the initial screen, where you can choose your game mode:

Project Architecture

Here is the UML class diagram for the BlackJack card game:

About

The BlackJack card game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published