-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.c
executable file
·42 lines (36 loc) · 873 Bytes
/
main.c
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
37
38
39
40
41
/*Hadassah Yanofsky
ECE 160 - intro to C and C++
Cooper Union
Spring 2019 */
# include <stdio.h>
# include <sos.h>
char board[50][50];
int Player1, Player2, Computer, players, n;
int main ()
{
while(1)
{
how_big();
init_board();
if(numb_players()==1)
{
players=1;
comp_play();
}
else
{
players=2;
two_player();
}
if(game_done())
{
printf("Game done!\n");
winner();
if (!play_again())
{
break;
}
}
}
return 0;
}