Permalink
Browse files

Move function

  • Loading branch information...
1 parent c0f74e2 commit 958ea148ca9cf0904996327dff124ce3b6abb105 Andreas Pauley committed Mar 25, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 sudoku.py
View
@@ -202,6 +202,9 @@ def solve_file(filename, sep='\n'):
outfile = os.path.splitext(filename)[0] + '.out'
to_file(outfile, solutions)
+def solve_files(*filenames):
+ [solve_file(filename) for filename in filenames]
+
def test():
"A set of tests that must pass."
assert len(squares) == 81
@@ -216,9 +219,6 @@ def test():
'A1', 'A3', 'B1', 'B3'])
print 'All tests pass.'
-def solve_files(*filenames):
- [solve_file(filename) for filename in filenames]
-
if __name__ == '__main__':
test()
if len(sys.argv) > 1:

0 comments on commit 958ea14

Please sign in to comment.