4 ms·
The real challenge of course is to build an AI to beat the AI. Here's a random clicker: setInterval(function(){ var cells = document.getElementsByClassName("gr
by stefan_kendall3 13y ago
The real challenge of course is to build an AI to beat the AI. Here's a random clicker:
setInterval(function(){
var cells = document.getElementsByClassName("grid-cell");
var pos = Math.floor((Math.random()*cells.length));
if(Math.random() < 0.5){cells[pos].click();}
else {var ev = document.createEvent('HTMLEvents');
ev.initEvent('contextmenu', true, false);
cells[pos].dispatchEvent(ev);}
},100);
- sebastianavina 13y agoI'm waiting for a mathematician to show up and prove if in certain cases a game (no matter how well played) it's unsolvable.