-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbob.h
36 lines (22 loc) · 859 Bytes
/
bob.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
/*
* bob.h
*
* function prototypes for bob.c
*
*/
#ifndef BOB_H_
#define BOB_H_
#include "structs.h"
void init_game(struct Game* game, struct Player* player1,
struct Player* player2);
void start_game(int argc, char** argv, struct Game* game);
void start_with_dimensions(struct Game* game, char** argv);
void start_with_file(struct Game* game, char** argv);
void check_start(struct Game* game, char** grid, int** connectionGrid);
void draw_grid(struct Game* game, char** grid);
int manual_move(struct Game* game, struct Player* currentPlayer);
void make_move_manual(char** grid, int* userMove, struct Player* player);
int check_position(char** grid, int row, int column);
int auto_move(struct Game* game, struct Player* currentPlayer);
int* make_move_auto(struct Game* game, struct Player* player, char** grid);
#endif /* BOB_H_ */