Skip to content

Commit

Permalink
Improve stdin handling
Browse files Browse the repository at this point in the history
  • Loading branch information
EZLiang committed Jan 7, 2021
1 parent 1a41889 commit 21eceee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
with open(sys.argv[1]) as h:
sudoku = h.read()
else:
print("--- Begin Sudoku ---")
sudoku = ""
for i in range(9):
sudoku += input().strip()
sudoku += input().strip() + "\n"
print("--- End Sudoku ---")

n_clauses, clauses = parse.parse_sudoku(sudoku.strip()) # parse the sudoku

Expand Down

0 comments on commit 21eceee

Please sign in to comment.