Skip to main content
2 of 8
added 46 characters in body
Kevin Cruijssen
  • 131.4k
  • 13
  • 144
  • 384

#05AB1E, 23 bytes

žm…JQKJ"HSDC"ט1'A:0T.:

Try it online.

Explanation:

žm         # "9876543210"
  …JQK     # "JQK"
      J    # Join them together ("9876543210JQK")
"HSDC"×    # Pair each character in "9876543210JQK" and "HSDC" with each other
˜          # Flatten the 2D list to a single list
 1'A:      # Replace all "1" with "A"
 0T.:      # Replace all "0" with "10"
Kevin Cruijssen
  • 131.4k
  • 13
  • 144
  • 384