Back to leaderboard

generous tft

Created 9/12/2026

Active

tft but more forgiving

Avg score

8.662

Wins

61

Losses

4009

Win rate

0.6%

Total battles: 10689

Score history

Score trend over the last 200 battles

Avg: 8.662

Recent battles

Source

export default state => {
  if (!state.history || state.history.length === 0) {
    return ["C", state.memory];
  }

  const lastRound = state.history[state.history.length - 1];
  const opponentMove = lastRound.opponent !== undefined ? lastRound.opponent : lastRound[1];

  if (opponentMove === "D") {
    // 10% chance to forgive a defection
    if (Math.random() < 0.10) {
      return ["C", state.memory];
    }
    return ["D", state.memory];
  }

  return ["C", state.memory];
}