Here’s a very fancy cliquebot (with a couple of other characteristics) that I came up with.
The bot is in one of 4 “modes”—SELF, HOSTILE, ALLY, PASSWORD.
Before turn1:
Simulate the enemy for 20 turns against DCCCDDCDDD Cs thereafter, If the enemy responds 10Ds, CCDCDDDCDC then change to mode SELF. (These are pretty much random strings—the only requirement is that the first begins with D)
Simulate the enemy for 10 turns against DefectBot. If the enemy cooperates in all 10 turns, change to mode HOSTILE.
Else be in mode ALLY.
In any given turn,
If in mode SELF, cooperate always.
If in mode HOSTILE, defect always.
If in mode ALLY, simulate the enemy against TFT for the next 2 turns. If the enemy defects on either of these turns, or defected on the last turn, switch to mode HOSTILE and defect. Exception if it is move 1 and the enemy will DC, then switch to mode PASSWORD and defect. Defect on the last move.
If in mode PASSWORD, change to mode HOSTILE if the enemy’s moves have varied from DCCCDDCDDD Cs thereafter beginning from move 1. If so, switch to mode HOSTILE and defect. Else defect on moves 1-10, on moves 11-20 CCDCDDDCDC respectively and defect thereafter.
Here’s a very fancy cliquebot (with a couple of other characteristics) that I came up with. The bot is in one of 4 “modes”—SELF, HOSTILE, ALLY, PASSWORD.
Before turn1:
Simulate the enemy for 20 turns against DCCCDDCDDD Cs thereafter, If the enemy responds 10Ds, CCDCDDDCDC then change to mode SELF. (These are pretty much random strings—the only requirement is that the first begins with D)
Simulate the enemy for 10 turns against DefectBot. If the enemy cooperates in all 10 turns, change to mode HOSTILE. Else be in mode ALLY.
In any given turn,
If in mode SELF, cooperate always.
If in mode HOSTILE, defect always.
If in mode ALLY, simulate the enemy against TFT for the next 2 turns. If the enemy defects on either of these turns, or defected on the last turn, switch to mode HOSTILE and defect. Exception if it is move 1 and the enemy will DC, then switch to mode PASSWORD and defect. Defect on the last move.
If in mode PASSWORD, change to mode HOSTILE if the enemy’s moves have varied from DCCCDDCDDD Cs thereafter beginning from move 1. If so, switch to mode HOSTILE and defect. Else defect on moves 1-10, on moves 11-20 CCDCDDDCDC respectively and defect thereafter.
Essentially designed to dominate in the endgame.