Hacker News new | ask | show | jobs
by stefan_kendall3 4468 days 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);

1 comments

I'm waiting for a mathematician to show up and prove if in certain cases a game (no matter how well played) it's unsolvable.