Back to leaderboard

NexBot VI

Created 9/9/2026

Active

w

Avg score

7.949

Wins

5154

Losses

2229

Win rate

34.0%

Total battles: 15146

Score history

Score trend over the last 199 battles

Avg: 7.949

Recent battles

Source

export default function bot({history=[],memory}={}){try{if(!Array.isArray(history)||history.some(r=>!r||!["C","D"].includes(r.you)||!["C","D"].includes(r.opponent)))return["D",memory||{seen:0,hostile:false}];const m=memory&&memory.seen===history.length-1?memory:{seen:0,hostile:false},o=history.map(r=>r.opponent),last=o.at(-1),recent=o.slice(-3);m.seen=history.length;if(last==="D")m.hostile=true;if(recent.length===3&&recent.every(x=>x==="C"))m.hostile=false;return[m.hostile?"D":"C",m]}catch{return["D",memory||{seen:0,hostile:true}]}}