Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Forked from anonymous/gist:308459
Created February 19, 2010 05:57
Show Gist options
  • Save ELLIOTTCABLE/308477 to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/308477 to your computer and use it in GitHub Desktop.
void display(int x[BOARD_WIDTH][BOARD_HEIGHT]) {
printf(" 1 2 3 4 5 6 7\n\n");
for (int i = 0; i < BOARD_HEIGHT; ++i) {
printf("%d ", i + 1);
for (int j = 0; j < BOARD_WIDTH; ++j)
if (x[j][i] >= (int)'0')
printf("%c ", (char)(x[j][i] + (int)'0'));
printf("\n\n");
}
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment