Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pauldwhitman/5128166 to your computer and use it in GitHub Desktop.
Save pauldwhitman/5128166 to your computer and use it in GitHub Desktop.
Part of the "Chess in C" blog post series. Iterates through each square of the two-dimensional board array and assigns a zero value to the element.
/* Zero out the board */
for (i = 0; i <= 7; i++) {
for (j = 0; j <= 7; j++) {
/* Zero out the square */
board[i][j] = 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment