File: sudoku.h

package info (click to toggle)
nudoku 1.0.0-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 144 kB
  • sloc: ansic: 753; makefile: 13
file content (18 lines) | stat: -rw-r--r-- 407 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// vim: noexpandtab:ts=4:sts=4:sw=4

#ifndef SUDOKU_H
#define SUDOKU_H

#include <stdbool.h>	/* bool */

#define STREAM_LENGTH 82

typedef enum { D_EASY, D_NORMAL, D_HARD } DIFFICULTY;

int		get_holes(DIFFICULTY level);
char*	difficulty_to_str(DIFFICULTY level);
char*	generate_puzzle(int holes);
int		solve(char puzzle[STREAM_LENGTH]);
bool	is_valid_puzzle(char puzzle[STREAM_LENGTH]);

#endif // SUDOKU_H