HomeSort by: relevance | last modified time | path
    Searched refs:BSZ (Results 1 - 9 of 9) sorted by relevancy

  /src/games/gomoku/
stoc.c 60 letters[s % (BSZ + 1)], s / (BSZ + 1));
78 while (x <= BSZ && letters[x] != letter)
80 if (x > BSZ)
bdisp.c 51 #define scr_y(by) (1 + (BSZ - 1) - ((by) - 1))
54 #define TRANSCRIPT_COL (3 + (2 * BSZ - 1) + 3 + 3)
86 move(BSZ + 4, 0);
101 for (int col = 1; col <= BSZ; col++) {
102 mvaddch(scr_y(BSZ + 1), scr_x(col), letters[col]);
107 for (int row = BSZ; row >= 1; row--) {
109 mvprintw(scr_y(row), scr_x(BSZ) + 2, "%d", row);
126 int available = 3 + (1 + scr_x(BSZ) - scr_x(1)) + 3;
146 mvhline(BSZ + 2, 0, ' ', available);
147 mvprintw(BSZ + 2, x, "BLACK/%.*s (*) vs. WHITE/%.*s (O)"
    [all...]
gomoku.h 43 * The gomoku 'board' mainly consists of the playing area of BSZ x BSZ spots.
50 #define BSZ 19
51 #define BAREA ((1 + BSZ + 1) * (BSZ + 1) + 1)
57 #define FAREA (2 * BSZ * (BSZ - 4) + 2 * (BSZ - 4) * (BSZ - 4))
71 #define PT(x, y) ((x) + (BSZ + 1) * (y)
    [all...]
bdinit.c 76 if (col > BSZ - 4) {
83 } else if (col == BSZ - 4) {
130 game.user_x = 1 + (BSZ - 1) / 2;
131 game.user_y = 1 + (BSZ - 1) / 2;
134 for (int i = 0; i < 1 + BSZ + 1; i++, sp++) {
142 for (int row = 1; row <= BSZ; row++, sp++) {
143 for (int col = 1; col <= BSZ; col++, sp++) {
153 for (int i = 0; i < BSZ + 1; i++, sp++) {
makemove.c 43 -(BSZ + 1) + 1, /* down + right */
44 -(BSZ + 1), /* down */
45 -(BSZ + 1) - 1 /* down + left */
56 for (int y = 1; y <= BSZ; y++)
57 for (int x = 1; x <= BSZ; x++)
pickmove.c 92 return PT((BSZ + 1) / 2, (BSZ + 1) / 2);
95 for (spot_index s = PT(BSZ, BSZ) + 1; s-- > PT(1, 1); ) {
122 spot_index os = PT(BSZ, BSZ); /* our spot */
123 spot_index ts = PT(BSZ, BSZ); /* their spot */
124 for (spot_index s = PT(BSZ, BSZ); s-- > PT(1, 1); )
    [all...]
main.c 188 mvprintw(BSZ + 3, 0, "Black moves first. ");
206 move(BSZ + 3, 0);
255 move(BSZ + 3, 0);
452 return 1 <= u && u <= BSZ;
  /src/usr.bin/tail/
reverse.c 174 #define BSZ (128 * 1024)
190 (tl->l = malloc(BSZ)) == NULL) {
212 len < BSZ && (ch = getc(fp)) != EOF; ++len)
  /src/usr.bin/fsplit/
fsplit.c 84 #define BSZ 512
85 static char buf[BSZ];
277 for (ptr = buf; ptr < &buf[BSZ]; ) {
289 warnx("Line truncated to %d characters.", BSZ);

Completed in 39 milliseconds