Permalink
Browse files

Shuffling around code for stats printing

  • Loading branch information...
1 parent d867863 commit c4445fa9e88f1882fcc8081ad778fa20a5d9c532 Andreas Pauley committed Mar 24, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 sudoku.py
View
@@ -155,9 +155,10 @@ 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
-\t(avg %.6f secs (%d Hz), max %.6f secs, min %.6f secs).""" % (
- sum(results), N, name, sum(eliminations), sum(times),
+ print "Solved %d of %d puzzles from %s in %d eliminations, %.6f secs" % (
+ sum(results), N, name, sum(eliminations), sum(times))
+
+ print """\t(avg %.6f secs (%d Hz), max %.6f secs, min %.6f secs).""" % (
avg, hz, max(times), min(times))
return valuedicts

0 comments on commit c4445fa

Please sign in to comment.