simon-svn: puzzles: simon

tartarus-commits at lists.tartarus.org tartarus-commits at lists.tartarus.org
Tue May 31 19:09:29 BST 2005


SVN root:       svn://ixion.tartarus.org/main
Changes by:     simon
Revision:       5885
Date:           2005-05-31 19:09:28 +0100 (Tue, 31 May 2005)

Log message (8 lines):
Aha! It turns out, after a bit of failure-mode profiling, that when
the Mines unique grid generator fails at high mine densities it is
_almost always_ for the same reason, and it also turns out that this
reason is one which can be addressed. So here's an enhancement to
mineperturb() which enables Mines to generate a grid at (as far as I
can tell) any mine density you like, up to and including w*h-9
mines. At densities of 1 in 2 or thereabouts the grids start to look
rather strange, but it can at least generate them without hanging.

Modified files:
U   puzzles/mines.c

Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi?rev=5885&view=rev
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/puzzles/mines.c?rev=5885&r1=5884&r2=5885



More information about the tartarus-commits mailing list