2024-07-14 02:45:09 -07:00
|
|
|
#include "connect4.h"
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
struct Board *my_board = make_board(6, 7);
|
2024-07-15 18:57:53 -07:00
|
|
|
int drop_spot = 0;
|
|
|
|
|
do {
|
2024-07-14 03:51:47 -07:00
|
|
|
print_board(my_board);
|
|
|
|
|
printf("Where to drop? ");
|
|
|
|
|
scanf("%d",&drop_spot);
|
2024-07-15 18:57:53 -07:00
|
|
|
} while (!drop_tile(my_board, drop_spot-1));
|
|
|
|
|
print_board(my_board);
|
|
|
|
|
printf("Congratulations!");
|
2024-07-14 02:45:09 -07:00
|
|
|
return EXIT_SUCCESS;
|
|
|
|
|
}
|