Click the divs to remove them. Remove all div's in the shortest time and minimal clicks (to do). Code needs streamlining.<!DOCTYPE html><html><head><style>div {width:30px;height:30px;background-color:blue;position:fixed;}</style><script>function init() {var i;count=10;for (i=0;i<10;i++) with (document.getElementById('div'+i).style) {top=rInt()+'px';left=rInt()+'px';}}function update(n) {document.getElementById('div'+n).style.display='none';count--;if (count==0) alert('all gone!');}function rInt() {return Math.floor(Math.random()*200);}</script></head><body onload='init();'><div id='div0' onclick='update(0);'></div><div id='div1' onclick='update(1);'></div><div id='div2' onclick='update(2);'></div><div id='div3' onclick='update(3);'></div><div id='div4' onclick='update(4);'></div><div id='div5' onclick='update(5);'></div><div id='div6' onclick='update(6);'></div><div id='div7' onclick='update(7);'></div><div id='div8' onclick='update(8);'></div><div id='div9' onclick='update(9);'></div></body></html>I have a To Do list:To DoAdd timer,Add 'missed click counter',Colours,Size,Positions,Number,Streamline code into DOM format,Score,Play againOptionsFlashers,Multi-size,Movers,Bonuses (double points, static, combos, chains),Anti-bonuses (move, faster, half points, bombs)
Piccoche - a coordination game
javascript;game;dom