Permalink
Browse files

Rename var

  • Loading branch information...
1 parent 17bd69d commit d066dbc09fcd006885d01b2c4eaba445e484ffc6 Andreas Pauley committed Mar 24, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 sudoku.py
View
@@ -148,8 +148,8 @@ def time_solve(grid):
if puzzle: display(puzzle)
print '(%.2f seconds)\n' % t
return (t, solved(puzzle), puzzle)
- times, results, valuedicts = zip(*[time_solve(grid) for grid in grids])
- eliminations = [puzzle.count for puzzle in valuedicts]
+ times, results, puzzles = zip(*[time_solve(grid) for grid in grids])
+ eliminations = [puzzle.count for puzzle in puzzles]
N = len(grids)
if N >= 1:
@@ -161,7 +161,7 @@ def time_solve(grid):
avg = total_elims/N
print " (%d total eliminations, avg %.2f, max %d, min %d)." % (
total_elims, avg, max(eliminations), min(eliminations))
- return valuedicts
+ return puzzles
def solved(puzzle):
"A puzzle is solved if each unit is a permutation of the digits 1 to 9."

0 comments on commit d066dbc

Please sign in to comment.