Basically Gambit is a pseudo-programming language made to be easily understood.
E.g.
If HP < 50%, cast Cure II.
If HP < 75%, cast Cure.
If Attacker has 100% HP, use Attack A
If Attacker has 10% HP, use Attack B
and etc etc...