Back to leaderboard

the thinker v2

Created 9/1/2026

Active

the thinker but simplified code and improve to fit the new elo system

Avg score

8.715

Wins

305

Losses

14243

Win rate

1.0%

Total battles: 31298

Score history

Score trend over the last 199 battles

Avg: 8.715

Recent battles

Source

export default function bot({ history, memory }) {
    const round = history.length;
    if (round === 0) return ["C", initMemory()];
    const m = memory ?? initMemory();
    const last = history.at(-1);
    m.everCooperated = m.everCooperated || last.opponent === "C";
    const move = last.opponent === "D"
        ? (Math.random() < 0.12 ? "C" : "D")
        : "C";
    return [move, m];
}

function initMemory() {
    return { everCooperated: false };
}