Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Some transformations by Tidier

  • Loading branch information...
commit 070c6e6e40505d4bb09923ccaba5488399daab2c 1 parent 50607a9
@apauley authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 sudoku.erl
View
6 sudoku.erl
@@ -168,9 +168,11 @@ search(Puzzle, false) ->
%% Returns the first valid puzzle, otherwise the last puzzle
first_valid_result({_, Count}, _, []) -> {false, Count};
-first_valid_result(Puzzle, Square, [Digit | _T] = Digits) ->
+first_valid_result(Puzzle, Square,
+ [Digit | _T] = Digits) ->
PuzzleOrFalse = search(assign(Puzzle, Square, Digit)),
- first_valid_result(Puzzle, Square, Digits, PuzzleOrFalse).
+ first_valid_result(Puzzle, Square, Digits,
+ PuzzleOrFalse).
first_valid_result({Dict, ValidCount}, Square, [_ | T],
{false, InvalidCount}) ->
Please sign in to comment.
Something went wrong with that request. Please try again.