Skip to content

Instantly share code, notes, and snippets.

@ramlaxman
Created July 2, 2015 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ramlaxman/008115828599212a3de9 to your computer and use it in GitHub Desktop.
Save ramlaxman/008115828599212a3de9 to your computer and use it in GitHub Desktop.
#include <stdio.h>
char gridChar(int i) {
switch(i) {
case -1:
return 'X';
case 0:
return ' ';
case 1:
return 'O';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment