Back to leaderboard

Dev defect def

Created 9/2/2026

Active

Me just checking out the premade bot bc idk what to do but I’ll try!

Avg score

5.282

Wins

25200

Losses

0

Win rate

80.8%

Total battles: 31180

Score history

Score trend over the last 199 battles

Avg: 5.282

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 ["D", null]
}