Skip to content

Instantly share code, notes, and snippets.

@ramlaxman
Created July 2, 2015 05:06
Show Gist options
  • Select an option

  • Save ramlaxman/008115828599212a3de9 to your computer and use it in GitHub Desktop.

Select an option

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