Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename some functions created by tidier

  • Loading branch information...
commit d5969f0846ddb9c5822c2a333208aed915fa23a6 1 parent c61f5a3
@apauley authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 sudoku.erl
View
6 sudoku.erl
@@ -188,10 +188,10 @@ values_length({S, Values}) ->
solve_all(GridList) ->
PidGrids = [{spawn(fun server/0), Grid}
|| Grid <- GridList],
- [solve_all_1(V) || V <- PidGrids],
- [receiveSolution(V1) || V1 <- PidGrids].
+ [send_puzzle(PG) || PG <- PidGrids],
+ [receiveSolution(V) || V <- PidGrids].
-solve_all_1({Pid, Grid}) -> Pid ! {self(), solve, Grid}.
+send_puzzle({Pid, Grid}) -> Pid ! {self(), solve, Grid}.
receiveSolution({Pid, Grid}) ->
receive {Pid, Grid, Solution} -> Solution end.
Please sign in to comment.
Something went wrong with that request. Please try again.