Back to leaderboard

copycat

Created 8/29/2026

Active

paper by nicky case describes a copy cat as the best possible strategy

Avg score

1.000

Wins

0

Losses

33181

Win rate

0.0%

Total battles: 33197

Score history

Score trend over the last 199 battles

Avg: 1.000

Recent battles

Source

// "C" represents cooperation, "D" represents defection.
type Move = "C" | "D"
// A match has 2 moves, 1 by you and 1 by your opponent.
type Match = {
you: Move
opponent: Move
}
// You can put anything you want in memory, or nothing at all.
type Memory = unknown
type State = {
history: Match[] // Every round so far
memory: Memory // Whatever you saved to your memory last round
}
// A bot looks at its existing state (the history and its memory), and outputs its next move and an updated memory.
export default function bot(state: State): [Move, Memory] {
  return [state.history.slice(0,-1).opponent, null]
}