Back to leaderboard

Wikipedia

Created 9/4/2026

Active

Made by Luke

Avg score

8.156

Wins

19178

Losses

5886

Win rate

71.4%

Total battles: 26860

Score history

Score trend over the last 200 battles

Avg: 8.156

Recent battles

Source

export default function bot({ history, memory }) {
    memory = memory ?? {}

    const round = history.length + 1

    if (round === 100 || round === 101 || round === 102)
        return ["D", memory]

    if (round >= 103) {
        const opponentRound101 = history.at(100)?.opponent
        const opponentRound102 = history.at(101)?.opponent

        if (opponentRound101 === "C" && opponentRound102 === "C")
            return ["D", memory]
    }

    if (history.length === 0)
        return ["C", memory]

    const lastOpponentMove = history.at(-1)?.opponent

    return [lastOpponentMove, memory]
}