Skip to content

Commit

Permalink
Rename some functions created by tidier
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Pauley committed Sep 21, 2011
1 parent c61f5a3 commit d5969f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sudoku.erl
Expand Up @@ -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.
Expand Down

0 comments on commit d5969f0

Please sign in to comment.