BWIDTH
for (x = 0; x < BWIDTH; x++)
x = BWIDTH; y = BDEPTH; /* end the loop */
#define ONBOARD(x, y) (x >= 0 && x < BWIDTH && y >= 0 && y < BDEPTH)
static int curx = (BWIDTH / 2);
static char hits[2][BWIDTH][BDEPTH], board[2][BWIDTH][BDEPTH];
ss->x = rnd(BWIDTH - (ss->dir == E ? ss->length : 0));
memset(board, 0, sizeof(char) * BWIDTH * BDEPTH * 2);
memset(hits, 0, sizeof(char) * BWIDTH * BDEPTH * 2);
for (j = 0; j < BWIDTH; j++)
for (j = 0; j < BWIDTH; j++)
ny = cury; nx = curx+BWIDTH-1;
ny = cury+BDEPTH-1; nx = curx+BWIDTH-1;
ny = cury+1; nx = curx+BWIDTH-1;
&& myevent.x >= CX(0) && myevent.x < CX(BWIDTH))
curx = nx % BWIDTH;
int ypossible[BWIDTH * BDEPTH], xpossible[BWIDTH * BDEPTH], nposs;
for (x = 0; x < BWIDTH; x++)