Skip to content

Commit

Permalink
color
Browse files Browse the repository at this point in the history
  • Loading branch information
folkengine committed Dec 13, 2024
1 parent 466895a commit 0315006
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/color.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
use cardpack::US_ENGLISH;

fn main() {
let standard52 = cardpack::Standard52::default();

let mut pile = standard52.deck.shuffle();

let card = pile.draw_first().unwrap();

println!("{} {}", card.symbol(&US_ENGLISH), card.symbol_colorized(&US_ENGLISH));

}

0 comments on commit 0315006

Please sign in to comment.