The Best Card Trick?

Time for a little mathemagic! Choose any five cards from a pack and show four of them to your partner. How can they work out the fifth?
Exploring and noticing Working systematically Conjecturing and generalising Visualising and representing Reasoning, convincing and proving
Being curious Being resourceful Being resilient Being collaborative
In the video below, you can see Alison and Charlie performing a card trick for Yanqing:

Can you figure out how Alison and Charlie's code works?
 
The video below shows two more examples of the trick; do these examples confirm your initial ideas about the code?

This crib sheet fell out of Charlie's pocket after he had performed the trick.

Can you use it to make sense of the code?

 
Find someone to work with, and together practise the trick until you can impress someone with your mathemagical skills!
 
Alternatively, if you are working on your own, here are sets of five cards that might be handed to you:
Image
The Best Card Trick?
Image
The Best Card Trick?
Image
The Best Card Trick?
 
For each set, work out which four cards you would show, and in which order, so that a partner could work out the fifth card.
 
Notes and Background

This trick first appears in Wallace Lee's book "Math Miracles" in which he credits its invention to William Fitch Cheney, Jr., a.k.a. "Fitch."

You can read an article by Michael Kleber, the first part of which describes the trick, here.