Skip to content

Instantly share code, notes, and snippets.

@alex-wilmer
Created June 17, 2014 02:55
Show Gist options
  • Save alex-wilmer/4d9f5d4987223f40d0f5 to your computer and use it in GitHub Desktop.
Save alex-wilmer/4d9f5d4987223f40d0f5 to your computer and use it in GitHub Desktop.
function isCorner (col, row, size) {
if ((col==0 && row==0) ||
(col==size-1 && row==size-1) ||
(col==0 && row==size-1) ||
(col==size-1 && row==0)) {
return true;
}
}
function isEdge (col, row, size) {
if ((col==0 || row==0) ||
(col==size-1 || row==size-1)) {
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment