MetaJSRandomBot
+[[>-[->+]>>[-]>-<<[>][+]<]+<]->
#MetaJSRandomBot +[[>-[->+]>>[-]>-<<[>][+]<]+<]-> TheThe idea behind this bot is making something total random that is still a valid js code without too much uselessness. I wrote following code (JSFiddle link) for generating it. Lets see how well it does=)
var nchars = 30;
var nbrack = 10;
var alphab = "+ - < >".split(' ');
var s = [];
for(var i=0;i<nchars;i++){
s.push(alphab[(Math.random()*alphab.length)|0]);
}
var ind1,ind2;
for(var i=0;i<nbrack;i++){
ind1 = (s.length*Math.random())|0;
s.splice(ind1,0,'[');
ind2 = ((s.length-ind1-1)*Math.random())|0 + ind1;
s.splice(ind2,0,']');
}
s = s.join('')
for(var i=0;i<Math.max(nchars,nbrack);i++){//remove useless stuff
s=s.replace('[]','');
s=s.replace('+-','+');
s=s.replace('-+','-');
s=s.replace('<>','');
s=s.replace('><','');
}
alert(s);