forked from jessicatcr-zz/Reversi-IA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjogada.h
23 lines (18 loc) · 818 Bytes
/
jogada.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*******************************************************************************
* jogada.h *
* Propósito: Apenas uma interface para as funções relativas as jogadas. *
* *
* @author Jéssica Taís C. Rodrigues *
******************************************************************************/
#ifndef _JOGADA_H_
#define _JOGADA_H_
#include "tabuleiro.h"
typedef struct jogada {
int x;
int y;
} jogada;
bool jogadaValida (jogo *jg, int x, int y, char jogador);
int jogadasValidas(jogo *jg, char jogador, jogada jogadas[28]);
int jogaComputador(jogo *jg, jogada *melhorJogada);
void vitoria(jogo *jg);
#endif