Set-to-Zero

Your goal is to set all values on the board to zero by a sequence of mouse clicks. Every time you click on a positive number, that number is decremented by 1, and four its neighbors are also decremented by 1. If some of the numbers you attempt to decrement are already zeros, those numbers are set to 4.

Enjoy the game!

Featured at JavaScripter.net
Copyright © 1999 Alexei Kourbatov