simon-svn: puzzles: simon
tartarus-commits at lists.tartarus.org
tartarus-commits at lists.tartarus.org
Fri Jul 29 13:07:10 BST 2005
SVN root: svn://ixion.tartarus.org/main
Changes by: simon
Revision: 6149
Date: 2005-07-29 13:07:10 +0100 (Fri, 29 Jul 2005)
Log message (13 lines):
Various fixes and cleanups suggested by Ben Hutchings:
- clarified wording of messages in validate_params(), including in
particular a correction from `< 255' to `<= 255'
- fixed random_upto() in game generation which caused the maximum
number of balls never to be used when there was uncertainty
- fixed widespread miscalculation of rectangular-array indices
(multiplication by h instead of w, which would have broken
non-square grids rather profoundly)
- corrected an ANSI namespace violation
- removed real functionality from the inside of assert()
statements, so that the game should still work when compiled
-DNDEBUG
- couple of unnecessary linear-time loops removed.
Modified files:
U puzzles/blackbox.c
Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi?rev=6149&view=rev
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/puzzles/blackbox.c?rev=6149&r1=6148&r2=6149
More information about the tartarus-commits
mailing list