Created
March 10, 2013 11:04
-
-
Save pauldwhitman/5128158 to your computer and use it in GitHub Desktop.
Part of the "Chess in C" blog post series. Switching on the board value.
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
/* Get the board value */ | |
boardValue = board[i][j]; | |
/* And print the contents */ | |
switch (boardValue) { | |
case EMPTY: printf("."); | |
break; | |
case KING: printf("K"); | |
break; | |
case QUEEN: printf("Q"); | |
break; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment