Lines Matching defs:turn
59 #define OTHER (1-turn)
170 static int turn; /* 0=player, 1=computer */
519 turn = rnd(2);
746 sb = (turn) ? plyship : cpuship;
767 hits[turn][x1][y1] = MARK_MISS;
768 if (turn % 2 == PLAYER) {
790 hits[turn][x1][y1] = ss->symbol;
791 if (turn % 2 == PLAYER) {
1227 if (turn)
1234 i = scount(turn);
1236 if (turn) {
1246 while ((turn ? cputurn() : plyturn()) && awinna() == -1)
1248 turn = OTHER;