Created
March 10, 2013 11:13
-
-
Save pauldwhitman/5128197 to your computer and use it in GitHub Desktop.
Part of the "Chess in C" blog post series. This code iterates through the two-dimensional array board[][] backwards and zeroes out each element.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Iterate backward through board */ | |
for (i = 7; i >= 0; i--) { | |
for (j = 7; j >= 0; 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