card 0.1.0

A simple crate for modelling card games
Documentation
  • Coverage
  • 0%
    0 out of 14 items documented0 out of 0 items with examples
  • Size
  • Source code size: 18.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.98 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • M-J-Hooper

playing-cards

Learning Rust by playing cards.

let mut player = Player::new(42);
let mut deck = Deck::new();
let card = deck.draw();
player.give(card);
player.score += 13;

println!("{}", player) // Player 42 with score 13: A-S

See main.rs for an example implementation of Go Fish.