RanBot3004
Created 9/5/2026
Active
Bot that randomly moves if the opponent isnt predictable
Avg score
5.958
Wins
2641
Losses
15093
Win rate
11.1%
Total battles: 23701
Score history
Avg: 5.958
Recent battles
- cop7 7.92 vs 1.19 RanBot3004
- random5050 8.7 vs 4.7 RanBot3004
- RanBot3004 9.75 vs 9.82 better
- RanBot3004 9.85 vs 9.79 cop until 2 defect
- RanBot3004 8.05 vs 2.38 RanBot3006
- RanBot3004 9.85 vs 9.85 JBot-2 Tie
- RanBot3004 4.97 vs 5.02 JustDefunct
- jingolfika 7.95 vs 1.13 RanBot3004
- Slim Jeans 7.93 vs 1.18 RanBot3004
- Forgiving Destroyer 7.92 vs 1.2 RanBot3004
- neuralAdapter V1 9.85 vs 9.85 RanBot3004 Tie
- RanBot3004 1.29 vs 8.03 Corn Farmer v2
- WILLIAM SMITH 8.06 vs 1.78 RanBot3004
- adaptive bot 9.25 vs 7.53 RanBot3004
- RanBot3004 1.16 vs 7.94 JustBeatIt V7
- FlippityFloppity v3 8.97 vs 5.54 RanBot3004
- Aura67 9.84 vs 9.84 RanBot3004 Tie
- crownbotv2 8.91 vs 5.6 RanBot3004
- NexBot III 9.8 vs 9.66 RanBot3004
- RanBot3004 7.57 vs 9.28 adaptive bot
- RanBot3004 1.11 vs 7.9 test 1e
- GenerousTitForTat 9.86 vs 9.86 RanBot3004 Tie
- RanBot3004 8.66 vs 9.11 Agnes-distill-Tachyon-v2
- RanBot3004 9.87 vs 9.87 MoveStealer v2 Tie
- ApexUltimate v8 7.94 vs 1.15 RanBot3004
- RanBot3004 9.78 vs 9.87 NexBot III
- RanBot3004 4.97 vs 5.03 mahad kay
- RanBot3004 1.18 vs 7.93 Slim Jeans
- RanBot3004 1.59 vs 8.1 Swimmingbot3
- RanBot3004 9.85 vs 9.85 eyk6 Tie
- RanBot3004 1.17 vs 7.93 JustBeatIt V5
- RanBot3004 9.96 vs 9.93 DR MUNDO v0.3
- Opportunist v3 8.14 vs 2.21 RanBot3004
- MoveStealer V3.6 9.58 vs 9.58 RanBot3004 Tie
- human test 1 9.9 vs 9.9 RanBot3004 Tie
- RanBot3004 1.19 vs 7.92 knight
- RanBot3004 9.44 vs 9.76 A Rational Individual
- RanBot3004 2.03 vs 7.09 big GRIM guy
- knight 7.92 vs 1.2 RanBot3004
- Unintended Defection bot 5.03 vs 4.96 RanBot3004
- Opportunist v4 9.76 vs 9.83 RanBot3004
- RanBot3004 9.89 vs 9.89 playing.to.win Tie
- Tuff8 9.85 vs 9.85 RanBot3004 Tie
- Slim Jeans 7.93 vs 1.18 RanBot3004
- Cooperate2 9.76 vs 9.76 RanBot3004 Tie
- RanBot3004 9.78 vs 9.78 NexBot V Tie
- RanBot3004 9.92 vs 9.76 Adaptative v3.1.1
- Zeus 2 9.92 vs 9.92 RanBot3004 Tie
- RanBot3004 1.19 vs 7.92 Destroyer
- RanBot3004 2.94 vs 8.31 Opportunist
Source
export default function bot({ history, memory }) {
if (!memory) {
memory = {};
}
if (history.length === 0) {
return ['C', memory];
}
let opponentOnlyCooperate = true;
let opponentOnlyDeflect = true;
let opponentCooperations = 0;
let opponentDeflections = 0;
history.forEach(match => {
if (match.opponent == 'D') {
opponentOnlyCooperate = false;
opponentDeflections += 1;
}
if (match.opponent == 'C') {
opponentOnlyDeflect = false;
opponentCooperations += 1;
}
});
let coopChance = opponentCooperations / history.length;
let deflChance = opponentDeflections / history.length;
if (opponentOnlyCooperate || opponentOnlyDeflect) {
return ['D', memory];
}
return ['C', memory];
}
//# sourceMappingURL=bot1.js.map