blackjack 0.1.1

Crate for the popular casino card game Blackjack
Documentation
  • Coverage
  • 1.83%
    2 out of 109 items documented0 out of 96 items with examples
  • Size
  • Source code size: 63.85 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.89 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Arc676/Blackjack
    11 4 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Arc676 Fatcat560

Blackjack

A Rust backend crate and command line frontend for the popular card game, Blackjack. This crate is designed to be compilable for linking with C.

Crate

This crate is available on crates.io.

The library provides data types for representing decks (specifically, multiple decks combined into a single deck), players, hands, and individual cards. These structs provide the necessary methods for implementing a simple game of Blackjack.

The Rust command line frontend provides a sample implementation as well as functional gameplay experience.

Linking with C

The repository includes a C header file indicating the exposed methods of the library. A command line frontend to the library written in C is also available. This can be compiled using the included Makefile. If the Rust library output is stored at a path other than project_root/target/debug, the references will have to be updated.

Licensing

Project available under GPLv3. See LICENSE for full license text.