Skip to content

The Blackjack card game, implemented in Rust. No UI, just CLI.

License

Notifications You must be signed in to change notification settings

MRandl/BlackJack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust

BlackJack

This project is an implementation of the BlackJack card game in Rust. It supports same-host multiplayer as well as automatic bot players, and is entirely based on a terminal command line interface.

It has minimal dependencies (apart from the Rust standard library, it only uses the rand crate for card shuffling).

Game variant

This blackjack games implements the basic blackjack rules, along with the following variants :

  • The dealer stands on soft 17.
  • There is no hole card ("European variant").
  • There are four card packs being played at all times.
  • The player may split only once.
  • The player may double down on a split hand.
  • The player may play anything on split Aces.
  • The player may not surrender.
  • There are no side bets (in particular, no insurance).

Supported Architectures

Your architecture must be supported by the Rust compiler, and must have access to the standard std crate.

How to build

This project requires cargo. To build an executable, clone this repository and run cargo build --release. To build and run the executable, use cargo run --release. Note that if the rand library is not in your cargo cache, cargo will need an Internet connection to download it.

License

This project is licensed under the MIT license. See the license for more details.

Software written by Mathis Randl (@MRandl)

About

The Blackjack card game, implemented in Rust. No UI, just CLI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages