Back to leaderboard

Tieseeeeeeeeeeeeker v2

Created 9/12/2026

Active

gimme tie

Avg score

8.405

Wins

52

Losses

3022

Win rate

0.4%

Total battles: 11608

Score history

Score trend over the last 199 battles

Avg: 8.405

Recent battles

Source

export default function bot({ history, memory }) {
  // First move: start out cooperating
  if (!history.length) {
    return ["C", 0];
  }

  const lastRound = history[history.length - 1];

  // Track a running "grudge" score:
  // +1 if we defected last round, -1 if they defected last round
  let grudge = memory ?? 0;
  if (lastRound.you === "D") grudge += 1;
  if (lastRound.opponent === "D") grudge -= 1;

  // If the opponent has been defecting more than we have, retaliate
  const move = grudge < 0 ? "D" : "C";

  return [move, grudge];
}