Atomy Game in JavaScript – Version for one player

This is my first game in Java Script, made using the book O. Žára, JavaScrip, Programátorské techniky a webové technologie. There were some small bugs I had to fix. Most of them my fault.

In this version, you can click on atoms of a 6 time 6 grid. Every time the number of atoms exceeds the critical number of atoms, the current cell “explodes” and the atoms get distributed into neighboring cells. This can cause a chain reaction. The critical value for inner atoms is 4, edge atoms 3, and corner atoms 2. The explosions are instant in this version.