A functional deck of playing cards