void initGame(void);
void printChessboard(void);
void playChess(void);
int judge(int, int);
int main(void)
{
initGame();
while (1)
{
whoseTurn++;
playChess();
}
return 0;
}
void initGame(void)
{
char c;
printf("-------------GOMOKU 1.0.2-------------\n");
printf(" Box Company \n");
printf("Press any key to enter the game... \n");
getch();
system("cls");
printf("Do you want to play(Y/N)?\n");
c=getch();
if ('y' != c && 'Y' != c)
exit(0);[/mw_shl_code]