Recently I started watching Star Trek TNG and there is the episode "The Big Goodbye" where in the first minute Picard is shown having to learn an alien languge. The language is quite complex having "if" conditions and constraints.
Then I remembered there was a Stargate episode - I do not know whether it was SG-1, Atlantis or Universe where some guards played a card game. As far as I remember, the SG team was trapped and they told the guards that they would never win at "xy" (the name of the game).
The SG team was asked to show them the game and it was similar like the alien language.
It was like the following conversation - but I can't remember the exact words and phrases
"If you have two aces you have a Quiqash, but only if your opponent doesn't have the red queen. In this case you can only play the Quiqash if your aces are spade and heart."
Guard: "Ah yes ... I see".
Does anyone remember which SG episode this was? Or was it Star Trek TOS?