Base 3/Ternary uses 3 digits 0,1,2 so my technique is simple.

If we have a deck of cards with Red Black and White, associate each colour to a number Red=0 Black=1 White=2

Then when you deal the cards count the value so Black,Black = 11. In Base 3/ternary 11 is 4 so all you need to do is remember 4.

Example: Black,Red Black,White Red,White White,White = 1,0 1,2 0,2 2,2. I use two at a time so it is 3 5 2 8

As there are no white cards in a deck of playing cards i use any of the Ace, Jack, Queen, King for white.

I got this idea from the Binary system which uses 1 and 0 for Black and Red or anything else you apply it to.

**Binary - Number Conversion Systems**

https://artofmemory.com/wiki/Binary_Number_Memorization_Systems