You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1009 B

#ifndef types_h__
#define types_h__
typedef struct sudoku {
char feld[9][9]; /* Feld mit den Zahlen */
char vorgabe[9][9]; /* Fuer Farbige Ausgabe auf der Linuxkonsole benoetigt */
char belegung[9][9]; /* Die Vorgegebenen Felder */
char mgl[9][9][9]; /* Moegliche Zahlen (fuer Logik); 0=moeglich; 1=nicht moeglich; !! */
char notnull; /* Anzahl der verbleibenden leeren zellen, nur fuer logik */
} sudoku;
typedef struct options {
char unicode; /* Unicode output */
char color; /* Show colors */
char plaintext; /* Same format as the input */
char silent; /* just output the result */
char html; /* output html (implies silent) */
char solve; /* solve it or not */
char* outfile; /* outfile NULL if none */
char* overlay; /* overlay NULL if none */
char* infile; /* input file with the sudoku */
int (*check_nums)(sudoku*,int,int,int);
void (*set_num)(sudoku*,int,int,int);
int (*test)(sudoku*,int,int,int);
void (*ausgabe)(sudoku*,int);
} options;
#endif /* types_h__ */