-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSudoku.h
41 lines (32 loc) · 808 Bytes
/
Sudoku.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Sudoku.h
* Author: vinicius
*
* Created on October 15, 2016, 1:56 PM
*/
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#ifndef SUDOKU_H
#define SUDOKU_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
int tabuleiro[9][9];
int nTentativas;
} Sudoku;
int procuraPosicaoVazia(Sudoku sudoku, int *linha, int *coluna) ;
int preencheTabuleiro(Sudoku *sudoku, char *nomeArquivo);
void imprimeTabuleiro(Sudoku sudoku);
void zeraTabuleiro(Sudoku *sudoku);
int resolveSudoku(Sudoku *sudoku);
#ifdef __cplusplus
}
#endif
#endif /* SUDOKU_H */