Hi,
The concept of using Playing cards is mentioned in this link. At the end of the said article find the link to the git-hub repo hoisting the Autoit /JS/NodeJS Code.
https://www.schneier.com/academic/solitaire/
An addition to Solitaire Encryption
http://j.mp/SolitaireRepo
Thanks and Regards
DR