Skip to content

Commit

Permalink
Fixed generate_seed()
Browse files Browse the repository at this point in the history
The upper left and lower right 3x3 grids are the same. They are both generated using upperleft and lowerright is never used.
  • Loading branch information
lhiguer1 authored Jul 29, 2019
1 parent 4252842 commit 2ce458e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sudoku.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static char* generate_seed()
for(int j = 0; j < 6 ; j++)
stream[index++] = '.';
for(int j = 0; j < 3; j++)
stream[index++] = upperleft[iSquare++];
stream[index++] = lowerright[iSquare++];
}

stream[81] = '\0';
Expand Down

0 comments on commit 2ce458e

Please sign in to comment.