COMPUTER
randomplace(COMPUTER, ss);
placeship(COMPUTER, ss, FALSE);
getcoord(COMPUTER);
hit = IS_SHIP(board[COMPUTER][curx][cury]);
if (!hits[COMPUTER][x][y])
hits[COMPUTER][x][y] = (hit = (board[PLAYER][x][y])) ? MARK_HIT : MARK_MISS;
#define POSSIBLE(x, y) (ONBOARD(x, y) && !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% */