Permalink
Browse files

Remove unnecessary puzzle type checking

  • Loading branch information...
Andreas Pauley
Andreas Pauley committed Apr 1, 2011
1 parent 0cb0a05 commit 91ef8b4dd2570d1e65393f4f4b80bff924162f7e
Showing with 0 additions and 2 deletions.
  1. +0 −2 sudoku.erl
View
@@ -48,10 +48,8 @@ clean_grid(GridString) ->
parse_puzzle(Puzzle, [], []) ->
Puzzle;
parse_puzzle(Puzzle, [Square|Squares], [Value|GridString]) ->
- {_,_} = Puzzle,
IsDigit = member(Value, ?digits),
NewPuzzle = assign_if_digit(Puzzle, Square, Value, IsDigit),
- {_,_} = NewPuzzle,
parse_puzzle(NewPuzzle, Squares, GridString).
assign_if_digit(Puzzle, Square, Value, true) ->

0 comments on commit 91ef8b4

Please sign in to comment.