/* returns: 0 if X wins * 1 if O wins * 2 if tie * 3 keep playing */ #include #include #include #include //initially based on Frank's code int K; char check_win(char *board){ int i,j; char h; bool failed; // check all the rows for(i=0; i