Back to leaderboard

tieseeker v5

Created 9/15/2026

Active

ps tie

Avg score

8.383

Wins

53

Losses

2166

Win rate

0.6%

Total battles: 8552

Score history

Score trend over the last 200 battles

Avg: 8.383

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];
}