>card-suit ( card -- string )


Vocabulary
poker.private

Inputs
cardan object


Outputs
stringan object


Definition


: >card-suit ( card -- string )
{
{ [ dup 15 bit? ] [ drop "C" ] }
{ [ dup 14 bit? ] [ drop "D" ] }
{ [ dup 13 bit? ] [ drop "H" ] }
[ drop "S" ]
} cond ;