Refactor file structure, and make file
This commit is contained in:
parent
8158309d36
commit
6e831f601b
6 changed files with 35 additions and 9 deletions
17
src/main.c
Normal file
17
src/main.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "connect4.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct Board *my_board = make_board(6, 7);
|
||||
int drop_spot = 0;
|
||||
do {
|
||||
print_board(my_board);
|
||||
printf("Where to drop? ");
|
||||
scanf("%d",&drop_spot);
|
||||
} while (!drop_tile(my_board, drop_spot-1));
|
||||
print_board(my_board);
|
||||
printf("Congratulations!");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue