2020-12-21 14:41:53 +01:00
|
|
|
#ifndef SUDOKU_H
|
|
|
|
#define SUDOKU_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
struct sudoku {
|
|
|
|
int grid[9][9];
|
|
|
|
};
|
|
|
|
|
|
|
|
bool parse_grid_file(struct sudoku *grid, FILE *input);
|
|
|
|
bool parse_grid_str(struct sudoku *grid, const char *input);
|
2020-12-21 15:52:39 +01:00
|
|
|
bool parse_line_file(struct sudoku *grid, FILE *input);
|
|
|
|
bool parse_line_str(struct sudoku *grid, const char *input);
|
2020-12-21 14:41:53 +01:00
|
|
|
|
2020-12-21 20:37:30 +01:00
|
|
|
bool print_grid(const struct sudoku *grid, FILE *output);
|
|
|
|
bool print_line(const struct sudoku *grid, FILE *output);
|
|
|
|
|
2020-12-21 14:41:53 +01:00
|
|
|
#endif /* !SUDOKU_H */
|