codex
Loading...
Searching...
No Matches
chess_common.h
Go to the documentation of this file.
1static void print_board(const struct board *b) {
2 puts(" A B C D E F G H");
3 puts(" +-------------------------------+");
4 for(int y = 7; y != -1; --y) {
5 printf(" %d |", y + 1);
6 for(int x = 0; x != 8; x += 2)
7 print_pos(b, x, y), print_pos(b, x + 1, y);
8 putchar('\n');
9 if(y)
10 puts(" |---+---+---+---+---+---+---+---|");
11 }
12 puts(" +-------------------------------+");
13}
static void print_pos(const struct board *b, int x, int y)
Definition chess0.c:32
static void print_board(const struct board *b)
Definition chess_common.h:1
printf("x" "1" "= %d, x" "2" "= %s", x1, x2)
puts("The first, second, and third items.")
#define y
Definition gcc14.c:2
#define x
Definition gcc14.c:1
Definition mult_inh.c:26
Definition chess0.c:19