COMPUTER
hits[COMPUTER][x][y] = (hit = (board[PLAYER][x][y])) ? MARK_HIT : MARK_MISS;
if (hits[COMPUTER][x][y] == MARK_HIT)
(hits[COMPUTER][(int)ts.x][(int)ts.y] == MARK_HIT))
(hits[COMPUTER][(int)ts.x][(int)ts.y] == 0))
#define POSSIBLE(x, y) (ONBOARD(x, y) && !hits[COMPUTER][x][y])
randomplace(COMPUTER, ss);
placeship(COMPUTER, ss, FALSE);
(void) getcoord(COMPUTER);
hit = IS_SHIP(board[COMPUTER][curx][cury]);
if ((!hits[COMPUTER][x][y]) &&
printplayer(COMPUTER);
if (!gofish(move, COMPUTER, comphand))
goodmove(COMPUTER, move, comphand, userhand);
case COMPUTER:
if (check_out(COMPUTER))
if (damaged(COMPUTER))
out(COMPUTER);
if (!damaged(COMPUTER))
if (!damaged(COMPUTER))
if (!damaged(COMPUTER) && ramflag <= 0)
if (damaged(COMPUTER))
printf("%s", Device[COMPUTER].name);
if (!manual && damaged(COMPUTER))
Param.damprob[COMPUTER] = 20; /* computer 2.0% */