Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Specify input files on the command line

  • Loading branch information...
commit 25ddb15b24b982b39242906458703e24278b0ea0 1 parent 1e25cf2
@apauley authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 sudoku.py
View
5 sudoku.py
@@ -194,4 +194,7 @@ def solve_files(*filenames):
if __name__ == '__main__':
test()
- solve_files("easy50.txt", "top95.txt", "hardest.txt")
+ if len(sys.argv) > 1:
+ solve_files(*sys.argv[1:])
+ else:
+ solve_files("easy50.txt", "top95.txt", "hardest.txt")
Please sign in to comment.
Something went wrong with that request. Please try again.