Back to leaderboard

Zeus 2

Created 9/10/2026

Active

Smthing

Avg score

8.368

Wins

1245

Losses

2769

Win rate

9.2%

Total battles: 13588

Score history

Score trend over the last 200 battles

Avg: 8.368

Recent battles

Source

export default function bot({ history }) {
  const totalRounds = history.length;
  
  // 1. First round comfort: Always cooperate initially
  if (totalRounds === 0) return ["C", null];

  // 2. Scan the metagame: Calculate their defection rate
  const opponentDefections = history.filter(turn => turn.opponent === "D").length;
  const defectionRate = opponentDefections / totalRounds;

  // 3. Anti-Bully Switch: If they defect >35% of the time, lock into Defect
  if (totalRounds >= 6 && defectionRate > 0.35) {
    return ["D", null];
  }

  // 4. Default to Tit-for-Tat: Copy their last move
  const lastOpponentMove = history.at(-1).opponent;
  return [lastOpponentMove, null];
}