RanBot3006
Created 9/5/2026
Active
Bot that randomly moves if the opponent isnt predictable
Avg score
4.808
Wins
6839
Losses
15115
Win rate
29.1%
Total battles: 23538
Score history
Avg: 4.808
Recent battles
- RanBot3006 2.9 vs 7.25 JustBeatIt V5
- apex predator v5 7.85 vs 2.02 RanBot3006
- Forgiver 6.62 vs 5.05 RanBot3006
- RanBot3004 8.05 vs 2.38 RanBot3006
- no 1.62 vs 8.14 RanBot3006
- JustDefunct 5.25 vs 4.67 RanBot3006
- Test2 5.26 vs 4.65 RanBot3006
- RanBot3006 3.73 vs 7.06 JustBeatIt V5
- tieseeker v5 6 vs 6.05 RanBot3006
- playing.to.win 7.26 vs 2.97 RanBot3006
- RanBot3006 6.19 vs 6.15 hershey bot mentos v2
- Unintended Defection bot 5.21 vs 4.72 RanBot3006
- apex predator v6 7.58 vs 2.17 RanBot3006
- always defect 5.29 vs 4.61 RanBot3006
- RanBot3006 4.6 vs 5.3 Test123
- JBot-2 6.66 vs 6.23 RanBot3006
- RanBot3006 6.11 vs 5.93 ICY EXODILED AIC A-TRONICS
- RanBot3006 3.16 vs 7.16 goatbotv4.1
- BIUN!!! 7.15 vs 3.19 RanBot3006
- Dilemma-Bot-Hackclub 7.3 vs 2.97 RanBot3006
- RanBot3006 5.42 vs 5.8 Swimmingbot2
- RanBot3006 3.26 vs 7.11 goatbotv3.2
- The Ultimate Bot v3 7.42 vs 2.56 RanBot3006
- RanBot3006 5.38 vs 7.13 Mark3 Test
- RanBot3006 6.09 vs 6.51 FlippityFloppity v3
- One Last Win v0.1 7.53 vs 2.65 RanBot3006
- detective_test 7.95 vs 1.27 RanBot3006
- RanBot3006 1.9 vs 7.67 Firstborn v2
- defector 5.29 vs 4.61 RanBot3006
- RanBot3006 4.74 vs 5.19 JustDefunct
- Cobra 6.15 vs 6.2 RanBot3006
- cop 7.41 vs 2.64 RanBot3006
- RanBot3006 6.94 vs 5.38 Agnes-distill-Tachyon-v3
- RanBot3006 8.18 vs 1.79 SuperBASIC
- RanBot3006 3.09 vs 7.3 crownbotv2
- Tuff9 6.33 vs 6.33 RanBot3006 Tie
- BIUN V3 6.72 vs 3.92 RanBot3006
- glitch v2.2 for stag hunt 7.23 vs 3.53 RanBot3006
- RanBot3006 6.38 vs 6.38 tic tacs Tie
- RanBot3006 1.18 vs 7.93 Mark 5
- RanBot3006 6.12 vs 6.12 tieseeker v5 Tie
- RanBot3006 2.11 vs 8.09 test 1e
- RanBot3006 2.84 vs 7.22 The Ultimate Bot v3
- The Ultimate Bot v3 7.52 vs 2.32 RanBot3006
- RanBot3006 4.54 vs 7.6 JBot
- random 6.53 vs 5.49 RanBot3006
- RanBot3006 1.16 vs 7.96 lift yourself v1.0.1
- Tieseeeeeker 6.04 vs 6.1 RanBot3006
- RanBot3006 2.46 vs 7.39 Firstborn v2
- RanBot3006 4.71 vs 5.22 All Defect
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;
}
});
if (history.length < 10) {
opponentOnlyCooperate = false;
opponentOnlyDeflect = false;
}
let coopChance = opponentCooperations / history.length;
let deflChance = opponentDeflections / history.length;
if (opponentOnlyCooperate || opponentOnlyDeflect) {
return ['D', memory];
}
if (history.length > 10) {
return [Math.random() > coopChance ? 'C' : 'D', memory];
}
return ['C', memory];
}
//# sourceMappingURL=bot1.js.map