A famous computer tournament found that the winning strategy was to be kind, firm and quick to forgive, a formula the Holy Quran set out over 1,400 years ago. This article explores what Robert Axelrod’s experiments revealed and how closely they mirror Islam’s teaching on justice, kindness and forgiveness.
What is game theory?
When people make decisions that affect one another, each person’s choice determines what everyone else in that interaction gains or loses. Game theory is the study of these choices, using mathematics to reveal the most rational patterns of behaviour and which of them lead to success over time.
One of the most famous discoveries in game theory was made in 1980 by Robert Axelrod through mathematical computer simulations. These simulations showed that lasting success comes from three essential traits: being ‘nice’, ‘forgiving’ and ‘retaliatory’. This article explores how strikingly Axelrod’s findings align with Islamic teachings in the Holy Quran from over fourteen centuries ago.
To understand this concept fully, we can look to the best-known game in game theory: the prisoner’s dilemma.
The prisoner’s dilemma
Axelrod built his findings around the prisoner’s dilemma. It is the most famous game in game theory because it appears in so many areas of life. It models scenarios such as nations in an arms race, businesses undercutting each other on price and even game shows like Split or Steal.
The game takes its name from the story originally used to describe it. Two suspects are arrested and held in separate rooms, unable to communicate. Each is offered the same deal: betray your partner or stay silent. If both stay silent, each serves one year. If one betrays while the other stays silent, the betrayer goes free and the silent one serves three years. If both betray, each serves two years. In the language of the game, staying silent is to ‘cooperate’ and betraying is to ‘defect’.
The dilemma lies in the incentives. Whatever the other suspect chooses, you personally come out better by defecting: if they stay silent, you go free instead of serving a year; if they betray you, you serve two years instead of three. Yet if both follow that same logic, both defect and each serves two years, leaving both worse off than if they had remained silent.
This is the trap: the choice that is rational for the individual produces the worst result for the pair. It is precisely this tension between what benefits the self and what benefits everyone that makes the game a powerful model for real human conflict.
Situations like this arise constantly in real life, but with one crucial difference: repetition. In reality, we rarely interact with someone only once and we remember how others treated us last time. A defection today is not forgotten tomorrow. It was this addition of memory that led Axelrod to one of the most revealing experiments in the field.
The tournament
In 1980, Axelrod invited the world’s leading game theorists to submit computer programmes, each representing a different strategy, to play the two-player prisoner’s dilemma. Each strategy played every other strategy for 200 rounds and the tournament was repeated five times. The aim was to accumulate the most points overall. Fourteen strategies were submitted, alongside a random strategy.1
Two key findings emerged from this first tournament. First, the top strategies were all ones that cooperated in the first round – Axelrod called these ‘nice’ strategies. All eight nice strategies made up the top half of the results table and even the worst-performing ‘nice’ strategy outperformed the best ‘non-nice’ one. Second, the most successful strategies shared a tendency towards forgiveness: they responded to defection with proportionate retaliation but did not persist in punishment once cooperation resumed.
After these results were published, interest in Axelrod’s experiment grew rapidly. He then ran a second tournament, this time involving 63 strategies from game theorists all over the world. This second tournament revealed the final trait of successful strategies: retaliation. Strategies that were too forgiving – those that always cooperated regardless – were exploited by opponents who kept defecting, leaving them with virtually no points.2
Fascinatingly, the same strategy won both tournaments. It was named ‘Tit for Tat’ and it embodied all three winning traits.
- It started every game by cooperating, making it ‘nice’.
- If the opponent defected, it retaliated by defecting once.
- After one retaliation, it returned to cooperating as long as the opponent cooperated, making it ‘forgiving’.
In short, the tournaments showed that the most successful players possess three key qualities: they are nice, they retaliate proportionately when wronged and they do not hold a grudge.
An Islamic teaching
Remarkably, these three qualities – kindness, forgiveness and proportionate retaliation – are not new discoveries. They closely mirror ethical principles laid down in Islamic teachings over fourteen centuries ago.
The Holy Quran states:
اِنَّ اللّٰہَ یَاۡمُرُ بِالۡعَدۡلِ وَالۡاِحۡسَانِ
“Verily, Allah enjoins justice, and the doing of good to others.”3
In explaining this verse in The Philosophy of the Teachings of Islam, the Promised Messiah (as) defines the stage we should all try to reach. We should “take the initiative in doing good out of pure benevolence.”4
The Promised Messiah (as) also said this verse meant we should “show kindness even to those who have not done you any good.”5
This is the very trait Axelrod arrived at through his tournament – the trait of being ‘nice’. Every successful strategy opened the game by cooperating; no strategy waited to first discover whether the other player deserved goodwill. To begin with kindness rather than withhold it until it has been earned is what mathematics has only recently confirmed and what the Holy Quran prescribed fourteen centuries ago.
What Axelrod uncovered was, in truth, just one layer of a teaching far richer and broader than any single experiment could capture – a teaching Islam had already laid down in full.
The Promised Messiah (as) again explains the meaning of this same verse:
“God commands you to abide by justice and fairness. But if you wish to attain greater perfection, then treat people with compassion and do good even to those who have done you no good.”6
Here, the Promised Messiah (as) describes the quality that lies beyond kindness: forgiveness. To ‘do good even to those who have done you no good’ is to set a wrong aside rather than let it govern every future dealing. In the language of the prisoner’s dilemma, it is to treat a player who once defected as though the slate were clean.
Again, this was the very behaviour Axelrod found at the heart of every winning strategy. The most successful programmes retaliated when wronged, but the moment their opponent returned to cooperating, so did they; the offence was answered, then let go. Holding a permanent grudge, the experiment showed, was a losing strategy.
Yet Islam does not leave forgiveness as an unconditional rule. It pairs forgiveness with justice, teaching when to pardon and when a wrong must still be answered. This balance, present in the Holy Quran and absent from the teachings that came before it, is made clear in the following verse and its commentary.
Allah the Almighty also states:
وَجَزٰٓؤُا سَیِّئَۃٍ سَیِّئَۃٌ مِّثۡلُہَا ۚ فَمَنۡ عَفَا وَاَصۡلَحَ فَاَجۡرُہٗ عَلَی اللّٰہِ ؕ اِنَّہٗ لَا یُحِبُّ الظّٰلِمِیۡنَ
“And the recompense of an injury is an injury the like thereof; but whoso forgives and his act brings about reformation, his reward is with Allah. Surely, He loves not the wrongdoers.”7
This balanced approach, which mathematics has only recently discovered, was present all along within the perfect teachings of Islam.
The superiority of this Islamic injunction over the teachings of Christianity and Judaism is highlighted in the Five Volume Commentary on this verse:
“The verse forms the basis of the penal laws of Islam. The real object underlying the awarding of punishment to the guilty person according to Islamic teaching, is his moral reformation. If forgiveness is calculated to do him some moral good, he should be forgiven. But he should be punished, if punishment is likely to lead to his reformation; the punishment, however, should in no case be disproportionate to the offence committed. Islam does not believe in the monastic teaching of turning the other cheek, nor in the Jewish doctrine of ‘an eye for an eye’, under all conditions. It adopts the golden mean.”8
The Five Volume Commentary points out the shortcoming of the following Christian teaching:
“Whosoever shall smite thee on thy right cheek, turn to him the other also.”9
As an unconditional rule, absolute forgiveness can be unstable and impractical. Axelrod’s experiment shows this too: overly forgiving strategies were unsuccessful and easily taken advantage of by other strategies.
This is also a limitation of the Jewish doctrine: “Eye for eye, tooth for tooth, hand for hand, foot for foot.”10
At its core, Islam affirms this principle. It permits a response to a wrong but limits that response, allowing no more harm than was suffered. The Holy Quranic teaching quoted earlier states: “The recompense of an injury is an injury the like thereof.”7
Therefore, the shortcoming highlighted in the Jewish doctrine is not that it is ‘vengeful’, but that it applies ‘under all conditions’. It makes retaliation the whole of the law, leaving no room for the higher path of forgiveness.
That higher path is exactly what the rest of the verse supplies: “but whoso forgives and his act brings about reformation, his reward is with Allah.” Forgiveness is raised above retaliation, but it is not made unconditional either. It is tied to reformation, and the closing warning, “Surely, He loves not the wrongdoers”, makes clear that forgiveness must never become a license for wrongdoing to continue unchecked. Islam thus holds two things together: a just and proportionate response when one is wronged and a readiness to forgive whenever forgiveness will bring about moral good.
This Islamic teaching is the ‘golden mean’: an approach that begins with kindness, seeks equal retribution when necessary and remains ready to forgive. It is, in effect, the best-performing strategy.
Crucially, Axelrod’s experiment focuses on repetition, in which current choices directly affect future ones. This is precisely the condition under which reformation can be purposeful.
What game theory modelled through equations and experiments, Islam explained over fourteen centuries ago. This ‘golden mean’ of Islam puts reformation over revenge and, if adopted by modern governments, would make the world a better place.
Endnotes
1. “Effective Choice in the Prisoner’s Dilemma”, Journal of Conflict Resolution, Vol. 24, No. 1, 1980, pp. 3–25.
2. “More Effective Choice in the Prisoner’s Dilemma”, Journal of Conflict Resolution, Vol. 24, No. 3, 1980, pp. 379–403.
3. The Holy Quran, Surah an-Nahl, Ch.16: V.91, English translation by Maulawi Sher Ali.
4. Hazrat Mirza Ghulam Ahmad (as), The Philosophy of the Teachings of Islam, Islam International Publications, 2017, p. 63.
5. Hazrat Mirza Ghulam Ahmad (as), Noah’s Ark – An Invitation to Faith, Islam International Publications, 2018, p. 49.
6. Hazrat Mirza Ghulam Ahmad (as), Lecture Lahore, Islam International Publications, 2008, p. 12.
7. The Holy Quran, Surah ash-Shura, Ch.42: V.41, English translation by Maulawi Sher Ali.
8. The Holy Quran with English Translation and Commentary, Vol. 4, pp. 925–926.
9. The Bible, Matthew 5:39 (KJV).
10. The Bible, Exodus 21:24 (KJV).
