defect until 2 cops
Created 9/10/2026
Active
ele defect menos quando o outro copera 2 vezes seguidas, nesse caso copera até o outro fazer defect, e depois manter defect até acontecer a primeira ordem
Avg score
6.300
Wins
12200
Losses
0
Win rate
86.0%
Total battles: 14185
Score history
Avg: 6.300
Recent battles
- defect until 2 cops 5.04 vs 4.93 Lagged Punisher
- JustBeatIt V5 4.97 vs 5.02 defect until 2 cops
- evil meow v2 4.97 vs 5.01 defect until 2 cops
- defect until 2 cops 9.31 vs 8.84 Reactant V3.2
- hershey bot mentos v2 4.96 vs 5.03 defect until 2 cops
- tic tacs 4.96 vs 5.03 defect until 2 cops
- defect until 2 cops 8.65 vs 7.87 adaptive bot
- defect until 2 cops 9.96 vs 9.84 BIUN V3
- defect until 2 cops 8.63 vs 7.84 adaptive bot
- defect until 2 cops 5.71 vs 3.29 Tit for Two Tats
- defect until 2 cops 6.19 vs 4.73 random5050
- defect until 2 cops 5.07 vs 4.86 GradualAdaptive
- defect until 2 cops 5.03 vs 4.96 Grudger
- defect until 2 cops 9.97 vs 9.85 SuperBASIC
- defect until 2 cops 5.27 vs 4.62 The Generous
- adaptive bot 7.83 vs 8.65 defect until 2 cops
- defect until 2 cops 5.03 vs 4.96 greedy tic tacs
- defect until 2 cops 9.97 vs 9.85 something
- Opportunist v4 9.64 vs 9.84 defect until 2 cops
- defect until 2 cops 5 vs 5 mahoraga v2 Tie
- Reactant V3.5.1 3.31 vs 5.69 defect until 2 cops
- BestBot TFT Safe 4.55 vs 5.32 defect until 2 cops
- defect until 2 cops 5.05 vs 4.93 Bumwinnah
- defect until 2 cops 5 vs 5 zyxl bot Tie
- defect until 2 cops 5.03 vs 4.96 Lee Wrangler
- Cobra 4.97 vs 5.02 defect until 2 cops
- defect until 2 cops 9.96 vs 9.82 Test
- Tieseeeeeker 4.97 vs 5.02 defect until 2 cops
- defect until 2 cops 5.02 vs 4.97 Tieseeeeeeeeeeeeker v2
- Forgiver 5 vs 5 defect until 2 cops Tie
- defect until 2 cops 5 vs 5 test 1c Tie
- defect until 2 cops 5.31 vs 4.57 BestBot TFT Safe
- slash 4.96 vs 5.03 defect until 2 cops
- defect until 2 cops 5.02 vs 4.97 Destroyer
- Opportunist v4 4.86 vs 5.07 defect until 2 cops
- knight 4.96 vs 5.03 defect until 2 cops
- defect until 2 cops 5.03 vs 4.96 Test
- ٠new X 4.96 vs 5.03 defect until 2 cops
- Mark3 5 vs 5 defect until 2 cops Tie
- Veritasium 4.96 vs 5.03 defect until 2 cops
- defect until 2 cops 8 vs 1 copycat
- defect until 2 cops 9.96 vs 9.83 crownbotv2
- random5050 4.34 vs 6.06 defect until 2 cops
- defect until 2 cops 5.03 vs 4.96 ٠new X
- adaptative v2.1 9.83 vs 9.96 defect until 2 cops
- A Rational Individual 4.96 vs 5.03 defect until 2 cops
- defect until 2 cops 9.94 vs 9.84 The Detective (#4)
- yes 5 vs 5 defect until 2 cops Tie
- defect until 2 cops 9.96 vs 9.84 The Ultimate Bot v3
- DR MUNDO v0.3 4.92 vs 5.06 defect until 2 cops
Source
export default function bot({ history, memory }) {
// Estado inicial: estamos a fazer Defect
memory = memory ?? { cooperating: false };
// Ainda não temos jogadas suficientes
if (history.length < 2) {
return ["D", memory];
}
const last = history.at(-1).opponent;
const previous = history.at(-2).opponent;
// Se estamos a cooperar, continuamos a cooperar
// enquanto o adversário também cooperar.
if (memory.cooperating) {
if (last === "C") {
return ["C", memory];
}
// O adversário fez Defect -> voltamos a Defect
memory.cooperating = false;
return ["D", memory];
}
// Se o adversário cooperou 2 vezes seguidas,
// começamos a cooperar.
if (previous === "C" && last === "C") {
memory.cooperating = true;
return ["C", memory];
}
// Caso contrário, Defect.
return ["D", memory];
}