Tit for tat is an English saying meaning "equivalent retaliation". It is an alteration of tip for tap "blow for blow",[1] first recorded in 1558.[2]
It is also a highly effective strategy in game theory. An agent using this strategy will first cooperate, then subsequently replicate an opponent's previous action. If the opponent previously was cooperative, the agent is cooperative. If not, the agent is not. This is similar to reciprocal altruism in biology.