Permalink
Browse files

Re-order stats printing

  • Loading branch information...
1 parent c4445fa commit 25e2e55355dce92558f83c46b26ba04fe0962540 Andreas Pauley committed Mar 24, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 sudoku.py
View
@@ -155,11 +155,11 @@ def time_solve(grid):
if N >= 1:
avg = sum(times)/N
hz = N/sum(times)
- print "Solved %d of %d puzzles from %s in %d eliminations, %.6f secs" % (
- sum(results), N, name, sum(eliminations), sum(times))
+ print "Solved %d of %d puzzles from %s in %.6f secs (%d Hz)" % (
+ sum(results), N, name, sum(times), hz)
- print """\t(avg %.6f secs (%d Hz), max %.6f secs, min %.6f secs).""" % (
- avg, hz, max(times), min(times))
+ print " (%d eliminations, avg %.6f secs, max %.6f secs, min %.6f secs)." % (
+ sum(eliminations), avg, max(times), min(times))
return valuedicts
def solved(puzzle):

0 comments on commit 25e2e55

Please sign in to comment.