Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGAzed committed Jun 23, 2024
1 parent 0471b2b commit e6fd67a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions program/source/structures/concrete/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ KGrid _init_grid(FILE * kakuro_file) {

KGrid g = { 0 };
assert((GRID_DIMENTIONS == fread(g.size, sizeof(ksize_t), GRID_DIMENTIONS, kakuro_file)) && "READ FAILED");
printf("%02hhd %02hhd", g.size[ROW], g.size[COLUMN]);
fflush(stdout);
g.count = g.size[ROW] * g.size[COLUMN];

assert((g.grids[ROW] = malloc(g.size[ROW] * sizeof(lookup_t*))) && "ALLOCATION TO ROW ARRAY FAILED");
Expand Down
1 change: 0 additions & 1 deletion test/blackbox/suites/easy/easy_unset.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ TEST easy_unset_one(void) {
ASSERTm("COULDN'T OPEN FILE", fp);

Kakuro board = init_kakuro(fp);
print_board(board);
fclose(fp);

SArray solution = depth_first_search(board);
Expand Down

0 comments on commit e6fd67a

Please sign in to comment.