From 03150064001e57ed32e65970668d8dbf8578e910 Mon Sep 17 00:00:00 2001 From: folkengine Date: Fri, 13 Dec 2024 07:05:36 -0800 Subject: [PATCH] color --- examples/color.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/color.rs diff --git a/examples/color.rs b/examples/color.rs new file mode 100644 index 0000000..c58e400 --- /dev/null +++ b/examples/color.rs @@ -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)); + +} \ No newline at end of file