Refactor file structure, and make file

This commit is contained in:
Julia Lange 2024-07-16 02:48:19 -07:00
parent 8158309d36
commit 6e831f601b
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
6 changed files with 35 additions and 9 deletions

17
main.c
View file

@ -1,17 +0,0 @@
#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;
}