HELP: <deck>
{ $values { "deck" sequence } }
-{ $description "Returns a vector containing a standard, unshuffled deck of 52 cards." } ;
+{ $description "Returns a vector containing a standard, shuffled deck of 52 cards." } ;
: <deck> ( -- deck )
RANK_STR SUIT_STR 2array
- [ concat >ckf ] V{ } product-map-as ;
+ [ concat >ckf ] V{ } product-map-as randomize ;
: best-holdem-hand ( hand -- n cards )
5 [ [ hand-value ] [ ] bi ] { } map>assoc-combinations
: string>value ( string -- value )
parse-cards best-holdem-hand drop ;
-: shuffle ( deck -- deck )
- [ randomize ] change-cards ;
-
ERROR: no-card card deck ;
: draw-specific-card ( card deck -- card )