https://github.com/mrandl/blackjack
The Blackjack card game, implemented in Rust. No UI, just CLI.
https://github.com/mrandl/blackjack
blackjack blackjack-game cli rust rust-lang
Last synced: 7 months ago
JSON representation
The Blackjack card game, implemented in Rust. No UI, just CLI.
- Host: GitHub
- URL: https://github.com/mrandl/blackjack
- Owner: MRandl
- License: mit
- Created: 2021-08-08T08:27:57.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-06T20:27:45.000Z (about 4 years ago)
- Last Synced: 2025-01-17T19:55:23.658Z (9 months ago)
- Topics: blackjack, blackjack-game, cli, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 127 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://github.com/MRandl/BlackJack/actions/workflows/rust.yml)
# 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](LICENSE.md) for more details.
#
Software written by Mathis Randl ([@MRandl](https://www.github.com/MRandl))