Back to leaderboard

kind but faster detective

Created 9/9/2026

Active

d

Avg score

7.252

Wins

5077

Losses

4989

Win rate

33.1%

Total battles: 15316

Score history

Score trend over the last 199 battles

Avg: 7.252

Recent battles

Source

export default function bot({history, memory}) {
    //detective bot
    memory = memory ?? {opponentDeflected: false, kindness: true};
    if (history.length == 1) {
        return ["C", memory];
    }
    else if (history.length == 0) {
        return ["D", memory];
    }
    const move = history.at(-1)?.opponent
    if (history.length == 2 &&  move === "D") {
        memory.opponentDeflected = true;
    }
    if (!memory.opponentDeflected) {
        return ["D", memory];
    }
    else {
        if (memory.kindness) {
            memory.kindness = false;
            return ["C", memory];
        }
        return [history.at(-1)?.opponent, memory];
    }
}