minesweeper: bugfixes / code improvements
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Sat, 19 Jun 2010 08:06:31 +0000 (08:06 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Sat, 19 Jun 2010 08:06:31 +0000 (08:06 +0000)
commitef0dddbcbb2e936e17fd3c03e8ab0a4d20f623fd
treef9fdb2e6d3c3732ff679bd2b3ee5d6ad50f22c3f
parent27d921da2e1a10b84e638a935a3fa287c32af77b
minesweeper: bugfixes / code improvements

dont make out of array accesses to the minefield
dont flag positions already known
avoid using the same name for local & global variables
don't use modulo but only 1 conditional add/sub
apps/plugins/minesweeper.c