1. Write the face value of the card that you selected on a piece of paper.
The aces and face cards have the following values:
Ace = 1, J = 11, Q = 12 K = 13.
2. Double the face value.
3. Add 3.
4. Multiply by 5.
5. If the card you selected is a club, add 1; a heart, add 3; a diamond, add 2; or a spade, add 4.
Click here to run again
Click here to see why it works
Many thanks to Jaime Garcia Ramirez for helping me with the javascript!